Original: The 'Doctor' part of the name is obvious from their test and diagnostic function, and the 'Yellow' part comes from the bright yellow color they are all painted.
Simplified: Their name comes from their yellow color.