In any good society everyone who is able should be expected to contribute something though. Even in the wild you have the right to be alive but you don't have the right to free food, shelter etc without working for it
Similarly under capitalism you're not going to be executed for not working but also unless there's a good reason you can't contribute nobody's going to work to feed you for nothing in return