John was much younger than Peter. I read it that Peter may have been concerned in a brotherly (or even fatherly) way about whether John was going to be killed on the mission.
Then how do you explain Jesus’ rebuke to Peter? “What is that to you” does not seem like something one would say in answer to a brotherly or fatherly statement.