Of course your company needs to be profitable.
But your company will not continue to attract and retain highly-motivated and talented people if you treat them like faceless cogs in the machine.
Invest in your people, and they will continue to give high-quality efforts for years to come.
(quote: https://fairygodboss.com/career-topics/good-boss-meme)