The purpose of the undertaking is that you don't abandon your dependent in which case the state will be directly responsible to provide shelter.
"Non EU ILR holders should not be allowed to access benefits for first five years". The govt is trying this for EU citizen too...