weird...

I'm currently 22 weeks pregnant & ive noticed that every time I eat I have to poop right away, or when I get a tummy ache it's the same way, do any of y'all know why is that? I used to be so constipated and now when baby needs to go he goes! lol