I've read that its just a simple conversion. Midi's are based on a set of instructions for a synthesizer. Because of that, software is not capable of interpretting an mp3 or wav and writing those complex instructions (which include instrument, timing, key...).