To be fair, they do float you funds interest-free for up to 30 days, while the charges sit on your credit card.
As for the lag in accounting, credit card companies are a separate organization from the banks. Even though you may hold a Royal Bank Visa, it's still two companies in collaboration...