Usually, when you use your credit card at a store the merchant obtains authorization from the card issuer. This authorization tells the merchant that your account is valid and that sufficient credit is available to cover the purchase.
However, sometimes the merchant is unable to connect with your card issuer because of a technological glitch. You should call the card issuer to find out the reason the charge was not authorized.