You're "calibrating" the battery. This has been around on BMWs for a long time (my 2008 535xi had this). If you replace the battery yourself and obviously can't program it in, the car will bitch endlessly, but it'll still work.
The motorcycle comes with three keys: a red one and two black ones. The black ones will turn on the motorcycle but can't be copied. The red one can be copied and is intended as backup in case you lose the black ones. If you lose three the only way to turn the motorcycle on is to get a new ECU from the manufacturer.
I guess most modern cars are the same.
I think maybe I'm not going to sell my 1995 Nighthawk after all! Sounds like it might make more sense to just keep it running, simple and straightforward, without having to worry about all this fragile automation.
I buy used cars and repair them myself. I wonder if this disqualifies me from ever owning an electric car? While more recent cars have begun down the troubling path of making less and less user-serviceable, most cars still have either official service manuals or 3rd party manuals (based on tear-downs), and a healthy after-market parts market.