If you get your hands dirty, you become involved in something where the realities might compromise your principles. It can also mean that a person is not just stuck in an ivory tower dictating strategy, but is prepared to put in the effort and hard work to make the details actually happen.