I'm going to take a guess here and guess it's because you don't have enough money on the card for the transaction to go through.
In order to buy an app, you need to have all the money all at once or it won't go through. So if your Visa gift card doesn't have enough money on it, you won't be able to buy it. Hope this helps.