Many apps collect location data and share it with advertising networks and data traders. This makes it possible to track your life chronologically on a geographical map.
It is important to understand that having positioning switched on does not automatically mean that anyone knows your location. Your phone calculates its own location with the help of satellites, but these can only transmit. The satellites therefore do not know where you are. It only becomes problematic when apps share your own position via the internet.