Answer:
these amendments were intended to guarantee the freedom of the former slaves and grant certain civil rights to them and protect the former slaves and all citizens of the United States from discrimination.
(long story short, they were needed during that time)
hope that helped <3