I think you are being a tad too generous here. That wasn't the explicit messaging. Public health officials and experts did in fact lie and palter in that case. Part of the messaging was explicitly "masks are not effective in preventing general public from catching COIVD" [1] You could reasonably see it as a "noble lie", however.
The whole thing is also complicated by the fact that science on surgical masks etc. wasn't (and isn't) that clear. During the 2009 H1N1 flu, CDC also recommended against face masks for ordinary people. See this SSC article for more on that. [2]
[1] e.g. https://www.marketwatch.com/story/the-cdc-says-americans-don...
[2]: https://slatestarcodex.com/2020/03/23/face-masks-much-more-t... (Scott, like you, is also sometimes a bit too generous :-))