You're off base here. In a free market, no company needs an "excuse" to sell their products for whatever price they wish. Nor do higher prices always yield higher returns. Determining an optimal pricing strategy is a core tenet of business degrees. Walk into any store and examine any product: if the manufacturer has done its job properly, then a lower or higher price for the product would generate less total profits for the firm.
During the pandemic, NVidia (and many other firms) actually worsened the shortages by refusing to increase their prices and capture the entirety of the additional profits. The prices rose anyway -- but the excess profit went to scalpers instead, rather than manufacturers who could have used it to further production. A classic study in "grey market" economics. Such markets are less efficient, but there's no getting around that law of supply and demand, no matter how hard we whine and stamp our feet.