Indeed celiacs disease involving gluten digestion problem, however, there is no evidence that the genetic disorder was 'caused by gluten'. It could have just as easily been caused by random mutations leading to disease.
You may find this article on the genetics of celiacs disease of interest which says "We believe strongly that you have celiac disease from the moment you are born. It only manifests, however, after ingesting gluten."
Good luck
-------------------- STABLE: ♂, IBS-D 50+ years - Science of IBS