Apple gets a cut of the payments made through them and yet they provide this option to the consumers.
The FTC or the govt can force (?. I'm not a US resident and know nothing of US regulatory bodies' powers) card networks and banks to make this possible. This is exactly how things work in India, as I mentioned in https://news.ycombinator.com/item?id=36709947.