This is because the word "salle" (room) is feminine. The gender of the noun "classe" (class) doesn't affect the gender of the whole phrase.
So, you would say:
* La salle de classe (The classroom)
This is because the word "salle" (room) is feminine. The gender of the noun "classe" (class) doesn't affect the gender of the whole phrase.
So, you would say:
* La salle de classe (The classroom)