Poor people can have agency. The American midwest was built by the poorest people from Europe. German, Dutch, and Scandinavian immigrants self-organized to clear fields, built infrastructure, and tame the wilderness. They created thriving towns in some of the most bitterly cold parts of the country, such that Alexander de Tocqueville marveled at what they had build when he toured America in 1831.
I don't think the person you were responding to was intimating that poor people have no agency, just that they have much, much, much less. In a capitalist economy this is almost tautological.