To amplify further on the great answers already given...
When we use the definitive article here (i.e., the elderly people), we are taking about a specific group of people. Context may provide more details on *which* group of elderly people, or the sentence may provide that context, e.g. "the elderly people in this building".