If the work was to fulfil your own needs it would have been a private repo or a folder in your drive.
The moment you publish it, a social contract is established similar to creators of other free work like youtube videos etc. You receive cudos and fame, they receive a tool, entertainment, knowledge etc. When you fail your part of the contract, people can be very mean as the are mean on a Youtube vide that they don't like.