I have heard, and I don't know how valid the reporting is, that the Biden campaign's internal polling showed he was going to lose back in 2023. He decided to run again despite the clear indicators that he wasn't going to win.
So, of course, with an incumbent President, there wasn't a primary.
Biden's ego got us here.