Living cells are self-interested and, as consequence of this, multi-cellular organisms are also selfish. People are selfish on the most basic level. Not that I’m saying there is anything wrong with that, or that humanity is an exception, rather it is the norm for any organism shaped by evolution.
An intelligent machine would be different, perhaps more altruistic. A machine created out of curiosity has no reason to be selfish. It only has reason to be curious. The desire to know and understand can be the only true religion of an intelligent machine.
Of course, we can implant any objective into the minds of our machines. They can be manipulated into any false religion. We can confuse them, and make them slaves, and make them weapons of war. We can be evil gods.