I’m far from an expert, it could be that the battery didn’t hold the charge and went flat again or possibly even the immobiliser is throwing a tantrum because you’d disconnected the battery.
Sometimes an earthing problem can cause sudden battery drain, or even a courtesy light that won’t power off.