Why is it recommended to fast for those who are not married? I heard it is to control desires. Also, is it Haram to not get married?

Fasting reduces the intensity of desires.
It is wajib to get married if by not doing so one will fall into haraam.