Childhood films are a lot less innocent than you'd think.
In order to appease parents (or simply make their jobs more interesting), filmmakers love to throw in some adult jokes. Check out some here.
That's why you'll be completely mindblown to infinity and beyond when you see this Buzz Lightyear joke from Toy Story 2.