Because credit card companies mandated that you couldn't raise prices to pay their fees. Believe this was later outlawed in the US and perhaps elsewhere.
It also included a number of other valuable consumer protections, such as forcing card issuers to provide clear advance notice of interest-rate increases.
The financial-system reforms were some of the Obama administration's most valuable.