He was a federal attorney.  These are routinely assigned to investigate stuff, but like any other executive branch employee their work is supervised by the boss, namely the president.  Special counsel has statutorily protected independence.