Neutrals can cast evil spells too.
A cleric doesn't need to be evil to cast animate dead, she simply can't be good. That being said, a player who purports that her character is neutrally aligned with respect to good/evil, but who is constantly animating creatures, probably isn't playing the...