I'm fairly certain this was initially implemented to prevent ranged classes from glitching out mobs and killing them without the mob having a chance to attack them. Though actually all mobs had a ranged attack at release so maybe not.

I seem to recall SE acknowledging the issue a long time ago (or maybe I dreamed, but I don't think so), but apparently it's quite low on their priority list.