As the Civil War came to an end, it was crucial to take the big achievements and transition them into the law of the land before any ground was lost as reconstruction brought back the nation to one country instead of two warring parties. The turmoil of society that the abolition of slavery symbolized and the monumental surge forward for black history was so important that it was crucial to make it permanent with amendments to the constitution so the gains built during that bloody battle wouldn't be lost again.
Read more: The Fifteenth Amendment and Equal Protection of US Citizens