Exactly. The best reason not to ask is that it's personal and none of the customer's business!
And it's usually not innocent small talk. For a lot of status-conscious people, the purpose of asking the question (and other similar ones) is to suss out exactly where that other person is on the social status totem pole, so you know how far "beneath you" you can treat them.