Here, pets have always had to be identifiable: historically with a collar, but microchips have been required for some years now as a more effective method.
(That applies nationally, not some city thing)
https://www.rover.com/blog/dog-license/
Usually it's an animal welfare and control thing: you pay a lot more if you don't spay/neuter, rabies vaccination is required, etc.. Otherwise it's too easy for a city to be overrun by strays.
Also, if your pet gets lost and ends up being picked up by animal control, it's considered a stray if it's not registered.
If you want to travel within EU with your pet, you'll need a certificate for that as well.
No idea about how it is is the US but that doesn't sound crazy to register pets as they are at risk of being lost, abandonned, lacking vaccination or vets visits.
On a more serious note, it's interesting to note that some property never gets any ownership marks on it, some gets it customarily but only out of convenience, there is no legal obligation to do so, and for some property it is legally-mandated by the state but owners largely find it cumbersome.