But that is the conundrum. If the "work" is not really worth anything to other people, then the work isn't useful. If it is useful, it makes attacking the blockchain free. The security is because the work can't be used for anything except securing the network.