Those aren’t ‘UK solders’ - those are mercenaries
Hessians could be paid to fight for either side.
Incidentally, Hessians were auxiliaries, not mercenaries. Mercenaries fight of their own accord, whereas the Hessians and troops from other german principalities were hired out by their governments without input from the troops. In some instances, the rulers of the petty states received more money for a soldier killed than a soldier who returned alive.