For ones serving municipalities or communities, sure. My electric company is a co-op, but it is also not a dedicated reseller as it generates most of its power and usually has surplus it sells to PG&E.
With an HOA, the very land your home is built on has this sort of lien via a “special property assessment” and you are subject to their policy or risk having your home taken in a 100% legal way. My electric company cannot do that to me.