How do stores make money by selling other stores' gift cards?

How do stores make money by selling other stores' gift cards? And I don't mean like Walmart sells walmart gift cards, so then they might not be used. I mean how does Walmart make money by selling Target gift cards, or iTunes gift cards, etc.
3 answers 3