They are semi-occluded vocal tract (SOVT) exercises
Partly closing the vocal tract โ at the lips for a trill, or in the mouth when you hum โ raises the air pressure above the vocal folds. That back-pressure balances the pressure pushing up from below, so the folds can vibrate with far less collision force.