A: You realize that life is difficult and you can't survive alone for long so you decide to support your family, friends and even your community in their hard times so that they will support you in yours.
B: An invisible, all-powerful, alien force speaks through selected individuals passing on laws and morals to guide humanity toward some after-death reward.

