Gintama Sex-Change Seiyuu Change
It was done in jest; Hijikata's female form was depicted as ugly and swinelike, so they decided to keep his original male voice actor to make it even funnier. This is the most likely explanation, although there could have been some other reason like casting issues.