Inflation directly affects the prices of essential commodities, including flour. When there is a general increase in the price level of goods and services, the cost of flour also rises, making it more expensive for consumers.