leg day is intense and you are putting a lot of stress on the body
your body will want to evacuate everything out to give it less work to do. knowing this you should consider eating less stressful foods before a workout and trying to eat a minimum of 1-2 hours prior. this way your body isn't digesting food during a workout and can handle the stress load