At one time, three common law rules barred most lawsuits by injured workers against employers. They are assumption of the risk, the fellow servant rule and contributory negligence.
(1) Assumption of the Risk - Workers were held to have been aware of the risks of injury associated with their jobs and to have taken their jobs with such knowledge.
(2) The Fellow Servant Rule - Employers were not liable for acts comitted by one servant that caused an injury to another servant. Employees and employers were formerly referred to as master and servant. Master did not refer only to slavemasters and servant did not refer only to maids and butlers.
(3) Contributory Negligence - If an injured person's conduct was in any way the cause of his injury, then he was barred from collecting damages. The term "contributory negligence" often arises today in regard to auto accidents, but the current law in all or almost all states is comparative negligence, under which injured plaintiffs' awards are reduced in proportion to their causation of their injuries, rather than precluded, although in many if not most states, a plaintiff cannot collect damages if he is more than half at fault.
I do not know whether workmen's comp was instituted to allow injured workers to collect damages or to protect employers from large jury awards. Many people think that the first state old age and disability pensions were instituted by FDR as part of the New Deal. Wrong! The first such system was started 50 years earlier by Prussia's Otto von Bismarck to co-opt the Social Democrats. What carried forward to our own Social Security was the arbitrarily set retirement age of 65.

