Every town I lived in has had some sort of community education program, but it's not always well known or advertised.
I've seen them run by the local community college, local library, parks and rec department, or the school district. Places like museums, art galleries, community theaters, nature centers, etc also run shorter classes which might be just once a week for two to four weeks. Community colleges also sometimes allow students to audit classes for a reduced fee or even free if you met particular criteria. (Unfortunately, I've noticed that the criteria has gotten more exclusive over the last decade and a half.)
Businesses like craft or hardware stores also sometimes have classes available.
Private instructors running group lessons/classes on specific topics have gotten harder to find in the last two decades, but they're still around. For example, a local machine shop here teaches welding, one of the organizers of our town's community garden teaches gardening classes, and there are several small music/dance schools.
Less bigoted religious groups offer LGBTQ+ friendly community classes as well. For example, both the local Zen group and the Universal Unitarians here offer classes on things like meditation and Tai Chi.
The regional LGBTQ+ orgs also sometimes have classes. For example, the queer hiking club offers classes on orienteering a couple times a year.
Small cities and towns tend to have more of this sort of thing going on than what people assume, it just might take some digging to find. (Particularly in rural areas, finding out about this sort of thing can require community participation because classes/lessons might only be advertised by word of mouth.)