I imagine there was originally a folk tale attached in which a cat gave in to curiosity with nasty results. "Now children, who can tell me the motto of this story?"