That isn't the definition, at least not the legal definition.
Gambling is making a wager(usually with money) on an event with an uncertain outcome for the chance for a prize with a monetary value.
Purchased raffles are gambling, the other 2 you mentioned are not. You buy kinder eggs for the...