Privately owned platforms are not required to respect the First Amendment. Neither Twitter nor X can guarantee your freedoms.
In other cases, the platform did it all on their own. That's perfectly legal but is also rightfully seen by users as political censorship, something the EFF claims to fight even when it's not from the govt.