Masks have their place, but they aren't "be-all and end-all" of policy. In fact, if all you do is mask, they don't work very well. You need to pair them with social distancing and other measures.
At the time we locked-down though, most public health agencies, including WHO, was not recommending masking for the public. We locked down because we didn't know how bad the virus was. Numbers like 3-5% infection mortality rate were being thrown around (which was scary). It wasn't because of lack of PPE.