In the 1980s, a diagnosis of HIV or AIDS was a death sentence. It was also essentially a license to discriminate, and employers did so frequently.
Although it has since become illegal to do so and the stigma surrounding the condition has waned, discrimination against HIV-positive workers continues. Some of it based in the misguided belief that the condition is associated with immoral behaviors or identities of which certain people may disapprove (i.e., drug use, sex work, homosexuality or infidelity). Other times, discrimination is perpetuated by a misunderstanding of how the disease is transmitted and who could be placed at risk.
In the U.S., taking adverse employment action against a worker because the worker is HIV-positive is a form of disability discrimination, and it’s illegal.