Digestive problems can be one of the main reasons for stomach pain. And since the process of digestion occurs after your dinner, the pain becomes worse at night.