Why should B cells residing in the mucosa-associated lymphoid tissues

Why should B cells residing in the mucosa-associated lymphoid tissues produce IgA?