How did Dred Scott vs Sanford get to the Supreme Court?

Because it was an unusual case of a slave trying to sue for his freedom retrospectively - that is, he had been taken on to free soil, and then back into slave country.