How do boogers in your nose form?

Its basically just dried up snot.