Why do people engage in unethical behavior, even unwittingly, and what lessons can I learn from that?

Why do people engage in unethical behavior, even unwittingly, and what lessons can I learn from that?