Ground may not be the same as earth ground.
Input ground, output ground, Micro-coomputer ground, etc...may not the the same or they may be at the same voltage.
Some times most of the grounds in a project are at (or about) 0 volts, but one of the grounds is at +300 volts. Ground can be relative to the componits in that area and not at all 0 volts.