Could be one of two things. It might be used for reverse polarity protection to keep the electrolytic caps from popping in case the battery gets plugged in backwards. Alternatively, diodes are often used as noise suppression so it might also be used in conjunction with the caps to protect the MOSFETs from damage due to switching noise.