Economics education (at least in the United States) is (IMO intentionally) beyond abysmal. The percentage of people that can reason out that restricting the prices of a desired good can cause shortages is a minority.
And the media is lazy beyond sin and doesn't go in-depth into issues at all or push back against dumb claims.
If a politician wanted to fight tomato prices and went and said "The price of tomatoes is too high and those greedy fatcat corporations aren't going to make unlimited profit if you want to make your family a pizza so we're setting a maximum ceiling on tomato prices" the media would print that and praise them with minimal pushback and the people would view them as a hero for cutting tomato prices, even if finding a tomato in a store subsequently became just about impossible.