The nut keeps the tube from moving around because the hole diameter is bigger than stem. You probably bought a tube for an aero rim which is taller than a regular rim.

Veronica