It's really hard to draw causal links here. It could be any number of factors or required all of them together. In fact, if that had worked, why didn't COVID or other strains die too? And China had much more severe & prolonged lockdowns but that didn't eliminate anything extra for them.
Don't underestimate the impact of stock viral interference - flu & COVID are both respiratory infections and COVID was much more infectious. Some flu strains probably just couldn't remain competitive with the combined set of other flu and COVID strains.
While masking and social distancing have a beneficial impact on limiting the spread of respiratory diseases, there are practical reasons why it doesn't work to eliminate it altogether and ignores the possibility and likelihood of other resevoirs to reintroduce the disease. For example, if North America remains masked & socially isolated by the virus persists in Europe, then as soon as North America opens up you'll get the virus in North America again. And imaging a simultaneous world wide lock down is a laugh - even during COVID governments were not globally coordinated and even within national governments there was mixed local coordination.
Aside from all that, let's say it was purely a result of masking and social distancing. The consequences of that were quite sever & catastrophic, not to mention that no one actually stayed away vs limited their normal contacts & there were plenty of practical reasons it wasn't possible (e.g. getting groceries). Life involves death & risk and it's pretty clear that even before the vaccines became available many people were not OK with the tradeoff COVID entailed (e.g. Florida).