Cameras and phones write EXIF metadata into JPEG and other image files. It is useful for organizing photos, but it can also reveal where a photo was taken, which matters when sharing pictures taken at home.
Many social networks remove EXIF data when you upload, but files sent by email, shared as links or uploaded to many websites keep it. Removing it before sharing is a simple privacy step.