It's nice to be thanked, but there are ways of thanking people, and we don't think this is a good one. We can't even decide what would be worse here; this message being printed on every receipt, or someone specifically typing it out for one customer.
The customer has helpfully included their purchases in the picture, so we can see that what they were buying is indeed a little unusual, but that doesn't give the store the right to comment on it in such a way - unless they meant it as a strange compliment.