Simple, you spend energy to post a note. It’s a negligible amount of energy for you, won’t drain your battery in two seconds like some would like you to believe.
Others can verify that you spent energy very easily and cheaply.
A spammer will need to spend a whole lot more to keep up their spamming habits.