CD/DVD-ROM devices usually use ATAPI (and the ones that have other interfaces usually have an adapter built-in) which is not something hard drives support.
You can get more details here:
ATAPI devices are also "speaking ATA", as the ATA physical interface and protocol are still being used to send the packets. On the other hand, ATA hard drives and solid state drives do not use ATAPI.
ATAPI devices include CD-ROM and DVD-ROM drives, tape drives, and large-capacity floppy drives such as the Zip drive and SuperDisk drive.