The Isle of Man was used as an internment camp for foreign nationals who were stranded or un-naturalised in England in both WW1 and WW2.
There were also POW Camps, not only in the Isle of Man but all over the North West of England. It would have been more difficult for escapees to have to cross the whole country in order to get to the East Coast nearest ot Holland, Belgium and Germany which were already in German hands.
There were Italian, German POW's working on the farms in this area, and a lot of them decided to stay after the war ended.
In Liverpool in WW1 and in WW2 residents did attack German born owners of shops and businesses. It is well documented and these were some of the people sent over to the IOM mostly for their own protection as they had lived and worked in the City for generations prior to that.
In times of war people panic and do things they would not necessarily do in normal times.
They used to wave to us as we walked past them whilst they were working in the fields.
We also had a lot of Polish people who joined the Free Polish Army over here and who also decided to stay after the war.