To someone besides your cat. This is called creating accountability.
The hypothesis is that you’ll then be embarrassed, shamed, humiliated, and ostracized if you fail to meet the deadline.
I don’t know how true that hypothesis is, but announcing a goal can help motivate you to meet it.