It goes against the simplified idea of evolution, in that, having a huge amount of off-spring die for no reason should generally be selected against since it's wasteful.
But evolution isn't a straight march to a finish line, it can only use what it has to work with and it's entirely possible for a branch of it to get stuck in weird specific ways that aren't helpful.