Yes they are stereotyping BUT insurance rates are based n statistics. Younger people aren't as experienced as older drivers therefore they are more likely to get into an accident. Then males drive more aggressively than women, thou I don't completely agree with that.
This is also why there are things like good driver discounts, you're not being the stereotype.