The point is to elicit positive emotions and associate them with a brand.
This is super obvious in pharmaceutical commercials as they all follow the same formula of upbeat music, people either enjoying nature or a party with friends, and lots of smiling as the voice-over tells you about the anal leakage and heart failure side effects.