I expect the boxes contain a small PC. The metal case will be big enough to allow sufficient airflow for cooling.
Totally unnecessary nowadays though; a Raspberry Pi, about the size of a mobile phone, could do the job and would consume less than a Watt of power. And unlike a phone, costs less than £50 all-in.