Original: They are often lined with a fabric if the garment becomes transparent when wet.
Simplified: They are often lined with a fabric that prevents them from becoming transparent when wet.