Perfect protection for your loins. That’s where the term came from.
https://www.artofmanliness.com/articles/how-to-gird-up-your-loins-an-illustrated-guide/