Mosquitoes are generally attracted to Co2 but when it comes to differences between humans it's genetic. There are a few genes that influence it. See more in the veratasium [1] video below.
[1] https://veritasium.com/education/why-are-mosquitoes-attracte...