The wings are wet and stick together. To free the wings the mosquito needs to overcome the surface tension of the water which it finds unable to do. Without free wings, it is unable to fly. So it waits till the water evaporates and the wings are dry again.