What I find most shocking about this, was that they banned the Press Secretary to the White House's Twitter account - That's the part I cannot get my head around.
You can't get your head around which part? The idea that the White House Press Secretary would tweet ban-worthy remarks? Or the part where Twitter banned the account?
The moment she started speaking on behalf of the Trump campaign she stopped acting in her role as an agent of the government, and became a spokesperson for the campaign.