Most systems are not completely isolated. Think about all those network cables. Maybe everything isn't on battery power. While it is unlikely that something may go wrong, UPS are designed with the assumption that the ground is intact. If that ground were to come unplugged and something shorted, the electricity may have to find another course to the ground. Maybe you or something else you like.