How can loyalty cards help companies learn about their customers?

How can loyalty cards help companies learn about their customers?