What is the point of mesh in swim shorts?

What is the point of mesh in swim shorts?

When the shorts get wet, the soft mesh lining protects the skin from getting any rash from the wet fabric and makes your time in the water and more importantly out of the water and drying, free of any sort of pain. The net or mesh lining also makes sure your skin is able to breathe by ensuring proper air circulation.