Female mosquitoes are more harmful than male mosquitoes. The female mosquitoes need blood to develop their eggs.
Therefore they bite to suck blood.