Hello. If grocery stores do not raise the price of pasta even if it merits the raise, it would yield to more people opting to buy that pasta instead. Thus, demand would arise.
Now, if there are more people who want that product, then the grocery stores would have no choice but to make it more expensive to try to lessen the demand. Therefore, the price would increase.