Also, Sweden used to make its own tank (at least in the WW2 and early cold war era) and still makes its own jets. It's getting harder and more expensive to make your own military equipment. You can probably make your next jet in a consortium of other European powers, or buy from them in an alliance.
They got to have it both ways, official neutrality and yet they were closely tied to the west, NATO nations, and had assurances that they would be provided some level of protections as well.
For a close to border nation at that time I think that is a desirable position. Provides at least the idea that there may be some flexibility for them.
I think portraying them a sort of freeloader is inaccurate / an over-simplification / unfair. They worked closely with NATO, and NATO countries worked with them.