Prime realises Swoop must be under some sort of external control as he's at heart a loyal Autobot (over the years Flanderisation will make the Dinobots more and more maverick) and does the one thing that he knows will so enrage his mind controlled colleague that Swoop will fight off the influence. He gives him a direct order.
Source: wiktionary