It's called friendly fire. You think it's dumb but you'd be surprised how often it happens in real wars. In the game though, it's learning the limits of your skills so you can use them better