Actually, mp3 is widely used because that's what the pirates chose back in the dial up days, when a lossy codec met their needs perfectly. You might still remember a time when mp3 was not supported by many players.
H264 meets the pirates' needs perfectly now. It has the best quality per bit-rate out there. And pirates don't care about royalty fees.