In reality... the door to your home has a lock on it, right? Think about the materials and effort that went into the design, manufacture, installation, and ongoing operation of that lock. Are those "wasted"? After all, it doesn't actually produce anything new! In fact, its entire purpose is to sit there and impede the flow of resources... which would otherwise flow towards people who think they can utilize them more effectively...
For a more naturalistic example, what about your body's immune system? A big portion of your body's "budget" is invested in mechanisms for finding and destroying other organisms, ones which have done quite a bit of their own work to build themselves up. Do you honestly weigh the Staphylococcus economy equally to your own?