Isn't this dangerous for other governments? Especially when one government owns ID documents of your citizens?
It's not just USA, other governments do the same. Here, you might find this interesting:
https://restoreprivacy.com/5-eyes-9-eyes-14-eyes/TL;DR: US and other countries share and collect data of their citizens (even citizens from countries that are not part of the international alliance) between them.