Without any sort of phone, I might have been less inclined to do an unplanned activity that would keep me at school after the school bus left, because getting home by public transit was obnoxiously slow, it was too far to credibly walk, a safe bike route basically didn’t exist, and none of my friends were old enough to have a car. But I was lucky that my parents’ commutes were such that one of them could come and get me after work if I managed to arrange it. Which I sometimes did by using the aforementioned pay phone to call their office.
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.