MIDI is an acronym for Musical Instrument Digital Interface, and a world-wide standard for allowing electronic musical equipment to communicate by transmitting messages such as performance information and sound selections. Any MIDI equipped device is able to transmit applicable types of data to another MIDI equipped device, even if the two devices are different models or were made by different manufactures.
Basically you have two totally different toasters, but they both serve the same purpose to toast bread right?