Here's why:
* Sodium ion (Na⁺) has a +1 charge.
* Carbonate ion (CO₃²⁻) has a -2 charge.
To form a neutral compound, you need two sodium ions (2 x +1 = +2) to balance the -2 charge of the carbonate ion.