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.
This is basically secrecy, not ban-worthy remarks. She said something that the public is not allowed to know.