This does not sound correct at all. A personal item and carry on are always free on legacy carriers like United. Are you sure this was not checked baggage?
Technically, they aren't charging for carry-ons, just disallowing them (for Econ Basic) and leaving checking (and paying the checked-bag fee) as the only option.