Changing your diet does this.. we have a ton of enzymes that help digest food. If you start eating much more of one type of food, the body needs time to catch up.
Can happen for protein (eggs or protein powder are notorious) but also for starches, especially for legumes..
I'm avoiding legumes due to slight intolerances (same for gluten) and yet, ate peas last night.. been farting all day long as I didn't take digestive enzymes containing the enzyme for it: alpha galactosidase it is..that's the secret behind 'Beano' .
After a very long time of very low carb diet the same happened for just any starch I ate, especially fibrous starches are causing MAJOR trouble.. reduce the fiber by all means if you are doing refeeds unless you love the farts.

. But like I said, this now only happens when eating legumes. Sometimes dairy too where you need yet another enzyme: lactase. Good protein powders won't have lactase in them.. Most fermented dairy neither.