 The rejection of Jesus at Nazareth, the rejection of Jesus' disciples, the rejection of John the Baptist, it's all meant to point us forward to how Jesus himself was rejected, and yet paradoxically, by means of that rejection comes our salvation. That's why Mark has placed this story here. He wants to pause the narrative to draw our attention to that.