We know a lot about how HIV is transmitted from person to person. Having safer sex means you take this into account and avoid risky practices.
There are two reasons to practice safer sex: to protect yourself and to protect others.