Often, a measure may work somewhat, or slightly, or even not at all but seem plausible at the time. Lockdowns have to have had some impact on the rate of spread, they may not have altered area under the curve. The most stringent lockdowns in China appear to have been effective, short term.
And I believe masks have some small benefit for obvious reasons.