They don't, really, as long as they're not disadvantaged compared to the competition. The people who are getting screwed are people who pay cash or use cards without rewards programs.
Merchants will charge more when profits drop. None of this is coming out of profits. They only time it comes out of profits is when competitors have some advantage that prevents the merchant from passing increases on to the customer.