If the pi has no data, like out in the open, and for some reason isnt connecting to the mobile hotspot, restarting it will often fix issues, but sometimes it might be stubborn and you might want to be able to conveniently send commands to the pi to restart services.