See the mask thread for the numerous responses debunking this historically moronic misinformation. Thanks!
Or,
The virus is contained in your fluids, a mask accumulates those fluids instead of letting it out.
No, it's not 100%
It does reduce the amount an infected person emitts to the local atmosphere.