I can assure you that young children are way smarter that most give them credit. They can pattern match pretty quickly.
This seems advanced to me. Of course this could be a stock phrase copied from an adult. My 2 year old does this a lot and it makes her sound grown up. As an adult I use confirmation bias to say "yup she's smart".