It gets the number that’s ringing and compares it to a database it downloaded. It’s not doing anything with your sensitive data.
At most if you decide to check online reviews against a number it’ll search the phone number online, but you get a warning beforehand and you don’t have to do that.
A second hand NUC off eBay