It is an option in both Android and iOS. Android has a proprietary library that is put in there (I don't know anything past that for how Android handles it). If I were to guess, your network provider has your home address and used that? but e911 is a USA thing, I don't know Germany's equivalent laws.
I would assume the IPsec traffic is the WiFi Calling feature? But I don't know.