it says that He knew "that the time had come for Him to leave this world" and by doing this, he "showed them the full extent of His love."
in other words, the last thing Jesus wanted to do was to show His disciples that He loved them.
a side comment for this passage says that this correlates also with human behavior.
when people know that they will die soon,
they say that their biggest regrets were not about not achieving goals,
riches, success, or fame,
but not having loved others enough,
having had ill feelings towards others,
not forgiving and being forgiven.
for people to think this when everything is going to be over soon,
it means that that's the biggest thing that matters in this world.
us, now knowing this,
have really no reason to wait til then
to be kinder to the people around us,
to embrace those who give us a hard time,
and to cut our selfishness and live to make others happy.