You are laughing to show people that you understand them, that you agree with them, that you're part of the same group as them.
Nos reímos para mostrar a las personas que uno las entiende, que está de acuerdo con ellas, que uno es parte del grupo.