They're not freaking out because Biden has dementia, they're freaking out because their lawfare against Trump didn't work.
The plan was to take Trump out, making it much easier for Biden to win. The fact that he has dementia didn't bother Democrats at all. What they didn't plan on is that the lawfare wouldn't work, Trump got stronger, and they're left with a dementia patient against Trump.