The connection to the modern word "nun" comes from the fact that early Christian communities often had women who lived a life of service and devotion, and were often referred to as "aunt" or "elder woman" by the community.
So, while "nun" doesn't have a simple root word, its origin is connected to the Latin word "nonna" and the societal roles of women in early Christianity.