I think it was definitely bad that Joe held on so long before letting Kamala run but incumbents lost globally[0], not just here in the US. People aren't happy with the effects COVID had, which is valid, but misplaced the blame which is how we got here.
[0]: https://apnews.com/article/global-elections-2024-incumbents-...