You do realise that there can be multiple purposes for an action? The most pressing at the time the lock down was implemented was preventing the hospital system being overwhelmed, but there are others like allowing time for better treatments to be developed.
Looking at the infection rates even in Europe the idea of herd immunity was always doomed. Not even Sweden is anywhere near herd immunity and their economy is as trashed as their neighbours.