Russia produce(d) a significant amount of fertilizer which is required to keep much of the world's breadbaskets and farming functioning such as farmland in Brazil. Less fertilizer means less yield from land which has cascading affects into prices of various inputs. Lower yields of onions, tomatoes, etc will raise the prices of the product.
One of Ukraine's exports was wheat and sunflower products. The absence of wheat from a major producer puts the rest of the world in competition with your wheat products. In addition to bread products and much of the middle aisle of your grocery store, wheat products also go into animal feed. Higher inputs to your animal food costs.
Most "quality" beef is grain-finished in the US (this is not a debate about if grain finished makes better steak, its' just a reality in restaurant supply). If you have more expensive wheat inputs for your higher quality beef, prices go up.
Can't escape thermodynamics.
Or at least, that's the reason for why prices were up in 2022.
We're no longer in 2022, though. In 2024, wheat prices are ~the same as they were in January 2020, but rice prices are ~50% higher.
Whether you want to attribute that to price stickiness due to the war, drought conditions in Asia, or spirit animals, that's up to you.