Jon decides to stay after he hears that he’ll be part of an expedition beyond the Wall. In Jon’s mind, that expedition could allow him to achieve the same kind of glory and renown that Robb is currently finding leading the Stark army. In other words, Jon decides to stay in the Night’s Watch once he sees how life in the Night’s Watch can give him the kind of recognition that he was deprived of in the Stark family.