A gift card is on their books as a liability until it's used. They have your money, but it's not in the "asset" column. It's like you've given them an interest-free loan that they haven't repaid yet.
Actually, the cash received is in the Assets column, and the outstanding gift card credit is under Liabilities, so it all balances out:
Assets = Liabilities + Equity