Twitter as a private company can moderate content as it sees fit. But the government is supposed to be constrained by the First Amendment. And here, they technically are, because they're not forcing Twitter to take action. But there's always the background threat of regulation if Twitter doesn't play nice, so it's not as black and white as this.