The things that are capped no longer produce (as much) profit, so food suppliers move to items that do bring in profit. Uncapped goods are now more desirable, and the suppliers increase prices to try to make up for the shortfall caused by price controls, making uncapped items even more expensive.
Government intervention like price controls always makes things more expensive, it’s just a question of where that expense is spread to.