There’s a labyrinth of explicit user agreements, all of which are strictly enforced, and then there are further layers of voluntary restrictions on top of that.
Yes, Google might collect location data even when you’re not using Maps (there are a lot of passionate, dedicated Timeline users), but you have to have that enabled, and even then the data can only be used in certain ways.