means that
people may be spared emotional distress when they are unaware of an upsetting fact, although ignorance does not remove the underlying harm.
Imagine a case where if you don't know about something, it cannot hurt you.; then “What the eye doesn't see, the heart doesn't grieve over” fits well.