they dont get into your nose, they are produced in your nose. snot traps dust in the air as you breathe and over time this hardens or thickens. if you pick your nose then wat you have on your finger...
There is no answer because boogers are just dead brain cells and dirt that you breathe in. And some people don't blow their nose so that boogers just build up.