It wasn't religion that gave rise to inspirational music and art. It was inspired musicians and artists who would have been inspired regardless of the limitations place on them by clerics, priests and preachers.
Fanny Crosby is interesting on this point