I don’t know about any relevant laws, but this was a big city, well after the 1970s. I semi-regularly walked myself a mile or so after elementary school to a parent’s office and no one batted an eye, but this may have been partially a result of the fact that the route was quite safe and largely car-free. Hmm, maybe the problem with kids’ freedom these days has as much to do with busy roads dividing up the world as with fear of school shootings.
I think that public transit in the particular area where my middle school was would have been, if anything, worse in the pre-phone era.