The IRQ number was related to the priority of the interrupt. I recall that the serial port operated on 2 IRQs - the higher priority IRQ was for receiving, the lower one for sending.