These characters combine to paint a vivid picture: one disguises oneself as a pig in order to eat (defeat) the tiger. The meaning is derived directly from this powerful and memorable visual.
This idiom is extremely common in modern, informal Chinese. It's used to describe tactics in various competitive situations.