Here's why:
* It's made up of two or more words: "Jack" and "the Beanstalk"
* These words work together to form a single idea: The story of a boy named Jack and a magical beanstalk.
While the individual words "Jack" and "beanstalk" are nouns themselves, when they are combined in this way, they become a single, compound noun.