> Isn't it very uneconomical?
On the contrary, the terms of credit cards include a "grace period": if you buy something on a card in the first day of a statement period, you will get a bill due to pay it off 45-50 days later (statement period closes after ~30 days, and then you bill is due a few weeks later). If you pay in full, carrying no balance over, there are _zero_ interest charges. Especially in today's rate environment, floating a few thousand dollars month to month for free is worth actual money, like a hundred bucks, if you invest in a 5% APY saving acct.
On top of that, many cards include a "cash back" feature, where every dollar you spend through the card gets you miles or a few pennies back. Figure about 2% cash back is a competitive rate, 2.5% at the top end, so it's about half as valuable as the float. This is basically fueled by networks charging merchants fees to accept credit card payments.
In theory merchants raise their rates to compensate for the merchant fees. In practice people paying cash pay the same as those who don't, so you might as well jump ship on this collective action problem.