I've been asked this by LH on intra-EU flights, which is mildly annoying as an EU citizen.
'Transit' wasn't an option, when I was actually transiting FRA on two tickets.
Travelling to a country I'm not a citizen/resident of, it makes sense. Could also easily be for research purposes.