Bergson's essay on laughter states that laughter is an intellectual response. We laugh because we feel uncomfortable when the unexpected occurs. When in a situation over which we have no control laughter is a release.
Comedy does not exist outside the pale of what is strictly human. [...] You may laugh at an animal but only because you have detected in it some human attitude or expression.
Henri Bergson