If the rotational speed falls below a gear-dependent minimum speed, the systems downshifts automatically even in manual mode "M" (the clutch is automatically disengaged when the engine speed falls below a minimum speed). This prevents the engine from stalling.
Here you can find out more about the shifting actions and the transmission modes "M" and "D".