Crossing the road mindlessly came to be associated with those who were seen as "Jays." So their style of walking become known as Jaywalking.