> It's so you can be sued by your customers.
Are you imagining that a customer in the EU is going to sue a work-from-home solo developer outside the EU over a $10 app? The logistics of such an endeavor for the plaintiff are onerous, to say the least.
In any case, Apple and Google already had the addresses and phone numbers of developers in their stores, not to mention their bank account information in order to send payments, so the address can be acquired for legal reasons without publishing it for everyone.
It's not that onerous. Just go to small claims court or your equivalent in your jurisdiction. Or, you know, just send them a harshly worded letter threatening to sue. That costs just a few bucks in postage and often works wonders.
If you're going to do business publicly, you have to have a pubic profile. Privacy is for private individuals.
How can Apple or Google determine if there is a legal reason to share a address? In jurisdictions that don't allow bringing civil suits against unknown parties, it's not possible to do this during discovery.