I would guess the name derives from the fact that St Anne, the apocryphal mother of Mary and grandmother of Jesus (in both Christian and Islamic traditions) was the patron saint of miners, among many other things.
From https://en.wikipedia.org/wiki/Saint_Anne:
As the mother of Mary, this devotion to Saint Anne as the patron of
miners arises from the medieval comparison between Mary and Christ and
the precious metals silver and gold. Anne's womb was considered the
source from which these precious metals were mined.
Mining certainly has a long history of its own traditions, and even its own laws. For example the "barmote courts," created in the 13th century to regulate lead mining in the UK, still exist today. Their function is now almost entirely ceremonial, but they still have the power to make legally binding judgments over mining disputes - the most recent judgment AFAIK was made in 2013.