Here's why:
* Noun clauses function as nouns. They can act as the subject, object, or complement of a sentence.
* In this sentence, the verb "eat" requires a direct object to complete its meaning. The object answers the question "What does the guest eat?" The noun clause "whatever is served" provides the answer.
Let me know if you'd like more examples or explanations!