Sammy's act of rebelliousness in the presence of the manager's warning has consequences that he probably has not thought all the way through.
Quitting his job is an act of the impetuousness (hasty, rash) of youth, for a brief moment, he feels a strong connection with the girls.
Sammy feels like he is expressing his individuality by standing up for something he believes in by quitting his job on the spot.