The common thread in your examples is the idea of entitlements.
Either entitlement to the doctors/engineers labor or a house one doesnt own.
I dont think externalities is the most useful model for thinking about this because it is easy to construct a more favorable hypothetical. That doesnt mean one is entiteled to it.
You are entitled to a benefit from your tax dollars being spent. Otherwise, it's just theft.