Yeah, it evolved independently as a practice in several regions, including Africa and the Middle East, Australia, and South America.
A lot of hotter climates, for some reason. It was, presumably, a hygiene practice, so you can argue the practice for any culture with poor water access or high risk of skin infections.
Or one heavily influenced by a culture like that.