I believe the answer is: Fear.
Hobbes believed that people would naturally rejects every effort to restrict their full personal freedom to be able to do whatever they want.
The very nature of 'law' itself is to restrict this full freedom in order to maintain a certain level of harmony in a society. Because of this, the people wouldn't follow the law willingly unless there is a punishment for it.