Granted, your undies are magically repaired. Unfortunately, all magic comes with consequences, so to offset the repaired holes in your underwear, new holes had to be drilled somewhere else, and your genitals were the closest thing, so... yeah.
I wish that the 98% of internet memes that aren't funny would cease to exist.