Someone messaged me their location?

Someone named "Maybe: Brooke" sent me a text message on my iphone and said it's Brooke and then she gave me her location which was 20 hours away from my location. I reported the message to junk and turned off "contacts found in apps" in settings on my iPhone. Why would someone give me their location and how does a random person get my number? I'm just worried that something bad might happen because she gave me her location. Her number was not in my contacts I don't know this person

Not sure why you did it that way. Clearly she texted the wrong number, just like a wrong number phone call. You should have just texted back wrong number so she wouldn't be waiting for someone.

She may have mis-typed the number, or someone else had the number some time before you did. It's not that big of a deal, so nothing to get worried about. You have to remember, if you have not had the same number for over 20+ years, several people will have had it before you. And even if you have had that number for a long time, the person that had it before, had friends and family that may still have the number as their last contact number. People move, people die, have reunions, etc, and try to get in touch with old friend and family they were not close to, and that is how many of those unknown numbers show up, that or from bill collectors trying to get the dead beat that had the number before you did.