The cash back on buying a gift card is added to your Ibotta earnings. You also earn a credit towards bonuses.
Please note that you don't have to use your debit card to buy a gift card. You can use your earnings instead. You will still earn the percentage for buying the gift card and earn a credit towards bonuses. Each gift card has a minimum amount with a maximum from all gift cards of $250 per day.