How important is it to roast nuts in a single layer?
If you pile them up, the nuts on the outside will burn before the nuts in the middle are properly roast. It's as simple as that.

As with most things, spreading nuts out in a single layer before roasting means that they will all roast at the same rate and brown evenly.