It should be noted that work location is a self report tool designed to make collaboration easier so colleagues can know where you are and potentially align their work from home schedules with yours.
It isn’t a spy tool that tracks where you are. It’s basically just an optional tag that you can add to your calendar if you want.
We use a slack app for the same purpose, and it works great.
Do you mean it used the information from AD/Entra or was it tracking you?