but isn't grotesque from grotto?

Actually grotesque is from the French and describes a kind of decorative art, the French word is from the Italian grottesca with the same meaning < grottesco 'concerning grottos' < grotta 'an artificial or natrual cave' which is ultimately from Greek krupte 'crypt, vault' < kruptos 'hidden, secret'.