This is about IP. Not about a limited resource like food. And is very easy to understand economically: is the same reason why in Finland and other countries traffic tickets amounts are based on the income of the driver, following the same logic costs of drugs should be tied to the ability of a country to pay them.
TL;DR you can't pretend asking $1.000 to an American is the same as asking $1.000 from a Nigerian