Does anybody on this sub have any idea as to how/when this practice came about?
I don't, but it's important to recognize that it's not really one practice, but many. It happens in at least 30 different countries, amongst different ethnic groups, in different manners, for different reasons. So there won't be one answer; it will have started differently for each group.