In most electrical systems one of those ground wires is also connected to a neutral wire that leads back to the generator. But there do exist "Single Wire Earth Return" systems where the neutral return wire is omitted and everything still works. https://en.m.wikipedia.org/wiki/Single-wire_earth_return