The crowd crosses toward Capernaum seeking Jesus, and John eventually tells readers that Jesus taught these things in the synagogue there. Capernaum was an important Galilean lakeside settlement already central to Jesus' ministry.
The synagogue provides the social and religious setting for the discourse.