People walking outside into a street.
A group of friends leave the pub, heading out onto the street to go home.
People leaving a building together are not necessarily friends. The building is unspecified and might not be a pub. They could be going anywhere, not just home.
(-x)
(-x)