They run them for heat AC and battery power plus the deisel engine needs to warm up a long time before it works properly so they never shut them off. In the winter this is critical because they may not want to start.
There is a fed plan to electrify truck stops
here is a new system being installed at truck stops so you don't need an APU. I come with AC heat cable telephone engine heater plug etc.