Fun fact, a significant part of the cost of 8-bit / 16-bit games is the cartridge. Those things cost like $15 dollar each. Combine with the loss taken by the publisher for units that fail to sell, they have to charge a pretty penny to be profitable.
Prices dropped considerably when consoles moved to CDs and other optical media - those usually cost like $1 or less each in bulk.