I think some bosses just toy with us until they realize "shoot I'm losing I should've tried harder" and then they die. Cause I feel like some of them could do better with the same raw stats if their AI were smarter. Like if moon lord aimed his deathray directly at the player.