Lots of these porn stars fuck around outside the job. The dudes still need to get their dicks wet and the girls are just flat out slutty and many will offer it up for money outside of filming.
All actors and actresses get tested regularly but if you fuck around a lot outside of porn and don't protect yourself then their always is going to be someone from time to time that gets some horrible STDS including HIV.