We tend to imitate the habits of three social groups: the close (family and friends), the many (the tribe), and the powerful.
An accountability partner can create an immediate cost to inaction. We care deeply about what others think of us, and we do not want others to have a lesser opinion of us.
When you know someone is watching, that can be a powerful motivator!