Cash is a free service provided by the government. Card and mobile payment is a fees-attached service provided by businesses. There is every reason to mandate acceptance of the former, and zero reason to mandate acceptance of the latter.
There are costs involved in dealing with both forms of payments.