This compromise was necessary because at the time that Missouri applied for admittance to the
US, there was an even number of slave states and free states. Tension was high between slave states and non-slave states so the congress was trying to hold onto a balance.
That balance was difficult, but the compromise managed to hold the union together for about 30 years more. It was ultimately