Twitter is not the government it is a privately held business. Musk is well known to be a racist, not unexpected from a white South African, so your expectation of free speech is misplaced. His ego has grown with his fortune.