Why did you want to eat that so bad?
【訳】どうしてそんなにそれを食べたかったんだ?
want to do 〜〜 so bad. で「すごく〜〜したくてたまらない」という表現になります。
普通に
Why did you want to eat that so much? でも通じると思います。
A: I got dorian yesterday, but it smelled so bad I had to put gloves, hat, and mask to cook it.
B: Why did you want to eat that so bad?