AIDS stands for Acquired Immune Deficiency Syndrome. Syndromes are a collection of symptoms, and in this case those symptoms are caused by opportunistic infections like tuberculosis that take advantage of the body’s immune system which has been damaged by HIV.
This usually happens because a person has not been tested for HIV and the virus has been allowed to spend many years damaging their immune system.