Not all dogs kept outside get enough socialization to be friendly, sadly. Some are just plain fearful, and with good reason.

If your town's Animal Control has an email address, I'd send those pictures to them, with a good description, describe that the dogs regularly escape, and ask what can be done about making the owners improve the dogs' living conditions.