Not a mistake! A relatively unkown method exists in Mage_Core_Model_Session_Abstract_Varien. The getData method in this class contains an optional boolean second parameter which if passed true will clear the variable while returning it.

So $session->getData('day_filter', true); would return the session variable day_filter and also clear it from the session at the same time.