You didn't know you're sharing your location!
So you're sending someone a picture over the iMessage on your iPhone? Just bear in mind that you're also sending your location ( if you didn't intentionally turn off location services for the camera app ). Just try to save a picture that someone sent you through iMessages and open it in photos app on your iPhone and then swipe the photo up, you will see the location of the sender. It's that simple :)