As a side note, there is a theory that part of the reason Self Delete is considered a crime or a sin comes from a Marxist point of view of how the church manipulated the poorer people.
In the past, the church often touted rewards in the after life in exchange for virtue during life. Virtue often embodied working for the church for free, giving them money, working the lands of the peerage, and living in extreme poverty and suffering. Being poor and meek are common elements that the church has encouraged in their teaching. This helped keep down rebellion and the pesky task of treating people well….which greatly benefited the people in power.
However, if the afterlife contains release and reward, how do you keep the workers working and suffering and not killing themselves to get to the release faster.
You tell them it’s a mortal sin, and thus, anybody who does it, will not get to heaven. You only get to heaven after a lifetime given to your lord (or getting killed in a war).
As with many church doctrines, these found their way into various forms of legal requirements.