Classical music is loosely defined as being composed from about 1750 to 1820.
This includes that from the minds of Beethoven, Mozart and Haydn.
Rach was pretty recent, in the scheme of things.
JS Bach could be correctly categorized as baroque. What was the question?