History of racial segregation in the United States
Losing the Civil War did not change people's ideas about African-American people.  During slavery, slave owners had not seen slaves as humans.  They saw them as property, things to buy and sell, like animals you would use on a farm.  After the War, many white people still did not see African-Americans as equal to whites.