It's not even like it's just a generic sci-fi ending. It is clearly DIRECTLY modeled after the Starship Troopers movie.

Which, don't get me wrong, that movie's great. But it's a weird pull for a Japanese studio.