Why does a person suffering from HIV-AIDS die, even due to small infection?

In case of HIV infection, the virus reaches the immune system and damages its function, due to which body will not be able to fight with even small infections like cold and may lead to death.