Mosquitoes (and other insects) lack the receptor HIV uses to recognize and infect immune cells. This means that mosquitoes can't get infected with HIV. Instead, the virus just gets broken down and digested in the mosquito's stomach. Because they can't get infected with HIV, mosquitoes can't transmit HIV to humans.