It was a command directed towards St. John.
Next question?
Joh 19:26-27 When Jesus therefore saw his mother, and the disciple standing by, whom he loved, he saith unto his mother, Woman, behold thy son! (27) Then saith he to the disciple, Behold thy mother! And from that hour that disciple took her unto his own home.So was he telling Mary to pray to John? Nope. The only explicit command is to look. She is to look at John as her son, and John is to look at her as his mother. Though he had half-brothers, Jesus was the oldest son of Mary, and so was obligated to ensure Mary was cared for, seeing that Joseph was no longer there. That he does so, even as He is dying a horrible death on our behalf, testifies to His sincere and natural righteousness. It simply was (and is) His innermost nature to always do what is right and good.
Next question?
Why do SO many folks take commands directed to specific targets, and think that those commands ALSO should be applied to others?