It's easy to donate books to libraries in the US and I do it all the time. Here locally, many of them will be sold in the Friends of the Library book sale, so that the library can purchase items on its formal purchase list for example. However I've seen e.g. my specialty books on Blender 3D and web development on the shelf, in addition to literature titles.
There are also Little Free Libraries around the city and most are crammed full with books of all kinds, many very interesting philosophical titles in there too.
Finally there are usually boxes of free books left outside homes if you walk around. Some are more prosaic but often there's a theme such as foreign language learning.