The diet didn't fail. The person failed. There's a pretty big difference. If someone's diet plan consists of "don't each a cheesecake every week," and they continue doing that, you don't say "this no cheesecake thing is nonsense, that doesn't work!" You wonder why that person doesn't just stop eating the cheesecake.