Definitely it’s not obvious that gluten specifically would be the cause, but seemingly obvious to test specialized diets?
So I guess I’m surprised people didn’t discover “avoid wheat” a lot sooner even if it took until the late 20th century to actually understand the mechanism.