In two ways-does the device class makes a difference ?
1. ceph deploys different tunable values depending on device class
2. In case of a variety of OSD types, if you do NOT specify a class the data will be written to all available disks- and you wont get any benefit from the faster disk classes.