Biden is not actually anti-Tesla and Elon Musk is not actually anti-Biden. But both men have an interest in making it appear that way. Let me explain.
For Biden, he must win Michigan. And it's not just electorally essential; it's his legacy. Legacy is a big deal to presidents, and for Biden his legacy is tied to global warming, and even more so electric cars. Biden has been tied to electric cars since his days with the ATVM loan program. To make mass adoption of EVs successful, he needs the UAW and the Detroit automakers to buy in. Tesla is not popular with Detroit, so if pretending to dislike Tesla helps get them on board, well so be it.
For Elon Musk, he's a much less political guy than people seem to think. Five years ago people thought he was some staunch liberal. Now people think he's a Trump supporter. He's never been either. Elon's goal, like Biden, is mass adoption of EVs and renewables. To get mass adoption of EVs, he has to sell EVs to Trump supporters in the sticks not just rich California tree huggers. Elon made his fortune off California tree huggers, but if pretending to dislike them helps Tesla sell EVs in the sticks, well so be it.
(This extends internationally too. Elon goes to China and tells them that China is awesome and America is entitled and complacent. Then he comes back to America and wraps himself in the American flag.)
So there's a kabuki theater going on here between two electric car promoters. We Tesla fans need to calm down about this Missy Cummins thing, and about the White House EV summit, and about Elon donating money to pro-oil politicians. This is all a show. Don't get sucked in.