Why didn't the 5th amendment make slaverly illegal?

Slaves were considered like property, so it wasn't able to be applied