Sympathetic magic - transferring or imitating elements of a symbol - was often used in primitive cultures. They believed that such a symbol’s strengths could be used as a cure. So as ants are regarded as highly productive and never resting - but eating them some cultures in North Africa believed that listless people could become more energetic.
Source:
1,001 Symbols: An Illustrated Guide to Imagery and Its Meaning