Kroger is most definitely storing this information. I rarely shop any Kroger store, but when they started doing IDs scans, I shop there less and no longer buy anything that requires my ID.
Similarly, Wal-Mart seems to know who I am based on my card transactions. When I swipe my card they ask if I would like a paper or an SMS receipt. I’m still not sure how they got that number association.