When you apply for a passport, you provide your address on the application form, and that address may be stored by the passport office or issuing authority in their records but it’s not linked to the physical document.
If you register with your country’s embassy or consulate while living abroad, then your passport and address can be linked in their internal system but this is still separate from the passport itself.