Islam encourages orphan sponsorship and urges the sponsor to treat the orphan the way he treats his children; however, it maintains the orphan's right to know his real family to protect his right in his father's inheritance and to avoid mixture of lineages.
There is something called the sound Fitrah (natural disposition) or the sound logic. So, whatever conforms to logic and to the sound natural disposition and the sound mind is from Allah, and whatever is complicated is from human beings.
When humanity perishes, none will remain except the Ever-Living Who never dies. Whoever says that the commitment to morals under the umbrella of religion is unimportant is like one who studies for twelve years and at the end says that he does not want the certificate.