This is called HCE (host card emulation) and it’s a function of the NFC reader chip and Android OS.
https://duckduckgo.com/?t=ffab&q=android+hce