How did the consequences of capitalism lead to communism?

When business owners exploited workers in order to gain bigger profits, conditions were ripe for communist leaders to step in to protect the workers.