Still I think it's a function of the banking laws as to whether a 'charge back' or 'reversal' is even possible.
While it can be a function of banking/consumer laws, it is also a feature offered by the credit card companies independant of (as long as it complies with) those various laws. Well before any such consumer/banking laws existed, it was in the terms and conditions of credit card companies to their users and requirements of payment processors/providers of the credit cards to be in compliance with the terms and conditions of the CC companies. It was one of the ways they enticed people to using CCs over things like travellers cheques, bank transfers, direct deposits, etc., it was an aded feature, a safety net the companies themselves offered and was often oncorporated later into individual countries laws. Therefore even if it isn't enshrined in law, it is enshrined contractually between the CC provider (Visa, Mastercard, American Express, etc., and the banks provding the CC under those umbrellas) and the business offering that payment option and the CC holder using that payment option.