not exactly like this....I wud call it a sort of safety engineering. Or security engineering, if you like.
It's kind of like spending time to build a security system around your home, to keep the burglars at bay. The time & resources expended for it wud impact on the yield & productivity of your farm, if you're a farmer.
But the loss to your farm wud only be a temporary one, and you wud be able to recompense for it, e.g. by working harder & longer, or using extra workers, the following week or month.
But the system protecting your home just has to be done. It is for the long term.
the human society is complex and not rational.