It's called a holding period. Wait a few days and you'll automatically get the money back. When you attempt to make a purchase with a CC online, the funds are held automatically. If the transaction fails for any reason, it won't be released back to your account to the end of the holding period. Some CCs are 24 hours, I've heard of as much as a couple weeks with a few CCs.
Long story short, it's your credit card company holding the funds. You'll notice the transactions say pending, and you'll get the money back on your own shortly.