Not sleeping in a mosquito net can increase the risk of contracting malaria because mosquitoes, particularly the Anopheles mosquito species, are the primary carriers of the malaria parasite. When an infected mosquito bites a person, it can transmit the parasite into their bloodstream, leading to the development of malaria. Using a mosquito net while sleeping can help prevent mosquito bites and reduce the risk of contracting malaria.