Often the Party and the electorate have differing goals. As a general rule the Republican Party didn't particularly like Trump, but the Republican electorate adores him. Likewise the Democratic Party really likes Biden, but my general feeling from Democratic voter was, "we'd rather Bernie or Yang, but have have to dump Trump."