Does the substance of what is called Pythagoras' Theorem remain true whether or not humans are aware of it? If yes, this is something not-found-in-Nature but not-a-fairy-tale; man-made but transcending man.
There is thus no real problem with religious compositions having been created by man, apart from the claim that they were god-given, which by itself is not a problem (e.g., Ramanujan thought that his results in mathemetics came from Namagiri Devi). The real question is do they embody knowledge? The claim of knowledge cannot be simply because "it is god-given"; our usual methods of validating knowledge must be applied. Exactly like Ramanujan's results in mathematics have to be validated by the methods of mathematics even if the results originated with the Devi.