If we're going to optimize for anything, it's for feeding as many people as possible -- there are far fewer celiac sufferers than there are people who go without enough food. Optimizing the food chain to protect you would result in many more people dying from starvation, because you'd be eliminating an efficient, widely grown crop that feeds many. Wheat is the second most important crop in the world, behind only rice.
There is nothing special about wheat. All of the resources spent on growing wheat could be expended on many other crops which would provide equal or greater nutritional benefit. The reason wheat is a globally important crop is simply because people have made it that way for arbitrary reasons, like raising European cattle in North America.
If the global food industry was capable of keeping wheat out of their food, that would be fantastic. Unlike dairy, almost all dry foods are contaminated with gluten unless you go to lengths to obtain food that is not.