Green veggies have high levels of fiber, which can take time to digest. Bacteria in your gut use the fiber as energy; resulting in gas.