Freezers provide heat outside the freezer - which is in the store. So while not the most efficient kind of heating it’s not “heat the store and cool the freezers”. 1kWh spent cooling a fridge is 1kWh heat added to the store.
(This depends on where the freezer heat exchangers are)