How do companies use my loyalty card data?

With data privacy is in the spotlight, how do retailers use the data gathered from loyalty cards?

Source