Modern bug repellents don’t frighten off insects, they hide the human being.
Chemicals in repellents influence mosquito olfaction, meaning they block the receptors that help the insects find their victims. So with the repellant, a human being technically becomes “invisible” to mosquitoes.