Interesting, because your fob was working well enough to get into the car and drive off. Unless you opened the car via app or key and used the fob in the steering wheel slot.Funny thing. My fob wasn’t working started car with phone. Drove it parked for 2 hours. Had to use my phone again
Still sounds like you should replace the fob battery.