L293D or L293B?

Why the diodes?

http://www.adrirobot.it/tobor/controllo_motori/figura_2.gif