The cause of these spots is not known, but there does tend to be an inherited factor involved, meaning they run in families.
No, these spots are not dangerous and never develop into cancer or any other problem. They are strictly of cosmetic significance.