sheesh
Well, it’s not just a Hindu thing. Early Christianity had the doctrine of ‘mortification of the flesh’, and came up with such inventions as hair shirts and self flagellation (they apparently had a number of brilliant tools to apply to the latter.)
I don’t think God required or approved of those, either. Human beings are just strange and often perverted, even when they think they’re being ‘holy’.