How many 30-40 mph roads/intersections were between your house and school?
Unfortunately this is the kind of thing that prevents many kids from walking to school in the US, even in cities, there are often few safe walking routes, incomplete sidewalks, poorly designed intersections across wide, fast moving roads.