It does not matter that the cost would be trivial to produce the medication to wipe out the plague now that the difficult work of developing the drugs has been done. Further, we don't wipe out AIDS because that would be unprofitable. Maximum profit demands keeping the virus around infecting new customers. And finally we don't wipe out AIDS because we don't have a way of allocating costs of projects that benefit every world citizen. We have spent about 4 billion on researching new AIDS treatments but only 0.1 billion on finding a vaccine to prevent new infections.
Capitalism is overheated.
It aims for constant growth. It ignores the biological imperatives that all systems must be closed and self-sustaining. In biology, constant growth is called cancer . We can't keep expanding the economy on a finite planet. This problem is a side effect of capitalism's narrow focus rather than considering the big picture.