All electic systems need a common point for reference of voltage levels. Ground is that "zero" reference point, so ground must be shared and common to all systems.
A device not sharing a common ground will not have the same reference "zero" voltage as the other devices and will have different/bad voltage levels.
These bad voltage levels will cause errors.