Question: why does your stomach hurt when you do push ups?
Answer: Doing push-ups correctly will activate your abdomen muscles. The discomfort you may be feeling is the soreness from your muscles getting sore. If that is the reason for your stomach being sore then you're performing the exercise - so hats off to you.