Why is music in cartoons upbeat and in major keys?

I might not be right but I think its because it makes it happy and fun and silly so would want to watch it

but I could be wrong