That's a very modern concept. It used to be the some companies goals were long term sustainability. Or to provide a meaningful life for both themselves *and* their employees. Or to share a passion with consumers. Or to grow the company.There's no secret. Charging more money because you can IS inflation. Every company's goal is to maximize profit.
A singular focus on "maximizing profit" is the part of capitalism that makes it harmful and dysfunctional in far too many circumstances. It leads many companies to pay below-poverty wages and leave the government holding the bag to make sure citizens don't starve. It leads many companies to cut corners on safety, leaving employees injured or dead. It leads many companies to gouge customers on things they literally or figuratively cannot live without. At some pretty basic level, it's the reason legal protections exist and libertarianism has never and can't work. Greed isn't good.