When Marxists believed that socialism was inevitable, there was no need to explain why it was desirable. It was simply the end point of a predetermined sequence of historical developments. Capitalism would self-destruct, due to its inner contradictions, and the increasingly immiserated workers would have no choice but to overthrow it.
Source: wiktionary