Here's why:
* Sodium (Na) has a +1 charge.
* Oxygen (O) has a -2 charge.
To balance the charges, you need two sodium atoms (+1 each) to combine with one oxygen atom (-2). This gives you a neutral compound: 2(+1) + (-2) = 0