Bach was deeply religious, and not just because of some lap-dog sense of "that's who's paying the bills." He signed most of his works as "SDG", short for "Soli Deo Gloria", which roughly translates as "to God alone belongs all glory. His meaning being that any ability Bach thought he had was solely just God showing off: Bach made beautiful music, but God made Bach, and he knew it.