Why does Shakespeare include Mercutio’s teasing words?

to explain the history of the feuding families
to criticize Romeo’s neglect of his duties
to condemn the established ritual of sword fighting
to contrast the seriousness of Tybalt’s challenge