We're far too generous with what we allow to be called "science". There is no dietary research, because you can't pull off an unbiased dietary study over a meaningful period of time. Practical and ethical problems abound. Maybe one day we can simulate n=10mm people from the neck down for a period of 30 years, and feed half of them bacon and half of them beans, but even that will have the major problems of being a sim…
There are ALL kinds of things we can't run experiments on. Climate, society, evolution, tech development, surgery, and more. We don't throw our hands in the air and say "science here is impossible!". Instead we roll up our sleeves and develop more and better causal inference models that improve over time.
The reason we can do science on some things without doing experiments is that there's lots of hard, unambiguous data about relatively much simpler systems.
Getting good data on the extremely complex thing that is homo sapiens is just not feasible, unless you're studying specific chemical reactions in the gut, in which case it'll take an extremely long time to figure out an actual dietary recommendation.