One is the character's views on "law" versus "chaos", the other on "good" versus "evil".
Most versions of the D&D games feature this system in which players make two choices for characters.
A categorization of the ethical and moral perspective of player characters, NPC and creatues.