The main function of absorbing sweat is to absorb sweat.
We all know that summer mesh shorts are made of lighter materials and we can all feel smoother and lighter. You can imagine how sweaty pants would feel against my legs without that mesh side. It is very uncomfortable. So the main function of the mesh is to absorb sweat.