Well, that is the heart of the debate. Folklorists like Satu Apo are pretty convinced these particular tales are literary creations, not compilations of oral tradition.
Perrault's Sleeping Beauty was actually a retelling of this literary fairy tale: https://en.wikipedia.org/wiki/Sun,_Moon,_and_Talia
But if you follow the link to the Wikipedia page for the Pentamerone, the collection in which Sun, Moon, and Talia appears, you get this:
> The stories in the Pentamerone were collected by Basile and published posthumously
It's clear, once again, that while he may have embellished them for publication, he was not creating them out of whole cloth, but collecting them from folk tales in his area.
It is far from clear, which is why I am pointing out that some folklorists think it does not come from folk tradition.
Regarding Basile, see long argument starting from page 75 in this book: http://www.academia.edu/19594654/A_FAIRY_TALE_NEW_HISTORY_Ru...
Chapter 4:
The Two Inventors of Fairy Tale Tradition
Giambattista Basile (1634–1636) and Giovan Francesco Straparola (1551, 1553)
Sleeping Beauty and Snow White were compiled in those works, not originally created there. Hell, "Volksmärchen" means "folk fairy tales." The very name tells you that Musäus didn't claim them as original creations, he was writing down what people had been telling each other for centuries orally.