My alignment changed to Neutral Evil, how did this happen?

You've chosen one of the evil paths in the Nine Hells. Look at the Hell Bonuses for more info.

You can undo the change (by cheating) or reload a save prior to your evil choice.

Note that the Revised Hell Trials mod changes this.