Walmart does not just sell groceries.  They sell other items which could average out the cost or bring in more foot traffic.

Metro sells mostly groceries and if that line of business takes a hit, their profit takes a major hit as well.

Again, the rules benefit the bigger players and knocks out the medium ones who only have one line of business.