Of course that's true. But the gospels were not written just to chit-chat about nice things that happened: "Isn't it nice that John took Mary in and cared for her?"
The gospels were written to teach us about OUR spiritual lives and the life of the Church. Therefore, when Jesus gives John to Mary as her son, and Mary to John as his mother, WE are being told about OUR relationship to Mary.