The ROM is, as commented, most likely an Electrically Erasable Programmable Read Only Memory (EEPROM), a type of memory that is generally only able to be written once before needing a special procedure to erase.
This EEPROM will be written at the factory at the time the PCB is married to the actual hard drive and likely contains the drive firmware and special calibration data required for the software to deal with the particular sensitivities of the drive head it is connected to.
Different firmwares may arrange things subtly differently on the disk, meaning that another board with different versions may not understand the underlying disk format.
Different calibration data may mean that whatever magnetic readings the drive head uses gives wrong results when passed through amplifier circuits.
Transferring the ROM over will transfer the correct firmware and/or calibration data needed to read the drive correctly.