The primary purpose of cleanings is not to prevent cavities. It's to remove the biofilm that exists at and below the gumline containing facultative anaerobes which cause periodontal disease. You can have gorgeous, cavity-free teeth that fall out because the supporting structures have been resorbed and destroyed by these anaerobes.