I am sharing a thought from a friend, namely that in the 18th century sacred music was fundamental and the composers of the first Viennese school (Haydn, Mozart, and Beethoven), as Rosen also explains, did not excel much in sacred music.
It must be said that the Neapolitans, however, defended it very well ...
Francesco Durante - Messa in pastorale