When dismounted, your horse doesn’t attack your target unless you’re attacked.
Hello @Trappist01x, we’ll poke the developers to determine if this behavior is intentional, since it does prevent your horse from simply running off and aggroing enemies while you’re dismounted.