Flight prices are driven by demand, and people prefer to fly during daytime hours, so red-eyes are almost always less expensive. The cheaper price is an airline incentive to get more people onboard these off-hours flights and free-up demand during the day.