Putting cost into something doesn't generate value. I have an acre of land. If I hired a team of workers to repeatedly dig a hole in my land and then refill it with the dirt they dug up, my land wouldn't become worth a million dollars just because I expended a million dollars of labor doing something pointless. Likewise, bitcoins don't have value just because you expend valuable computing and energy resources mining them.