If people buy less stuff that's a drop in demand and an increase in supply translating to lower prices.
If input costs like energy go up, which affect virtually every item, then that can lead to higher inflation because the aggregate spending across everything can't drop.