The most relevant reason why recent events might have led to many African Americans working for ranchers is:
After the end of slavery, African Americans could move and find new work.
This reflects the significant changes in opportunities that emerged following the Civil War and the abolition of slavery, allowing newly freed African Americans to seek employment in various sectors, including ranching.