Modern detergents don't always wash out of clothing completely.
When mixed with sweat and vigorous movement, the irritation can be bad.
In addition to using skin protectants, try using half as much detergent and then re-wash clothing without using any soap. Use cold water on the second wash if you want to save money.