Why do red giant stars have low temperatures?