Molecular biologists devote their lives and scientific reputations to studying questions like this.
Hiv-1 is a chimp virus
that jumped to humankind in the congo around 1900, hiv-2 from a sooty mangabey in western africa. Social changes, increased mobility, changing mores and population displacements allowed these to become epidemic. No reasonable, truthful source doubts this nowadays.