Answer:
He noticed that the world around him is divided by classes and there are injustices happening between poor people. Like how some are privilidged while some are not. That's why he formed the theory that talks about the struggles between capitalism and the working class.