We also don’t fully understand what causes autoimmune disease, but various environmental causes have been explored including bacterial and viral infections. Presumably if a viral infection could trigger an autoimmune response in certain genetically predisposed groups, then so could a vaccine designed to mimic a virus.
Unfortunately the incentives in our medical system are not designed to find cures for autoimmune diseases, although they are very much incentivized for palliative care, so progress has been painfully slow in understanding the deeper complexities of the immune system.