The phrase literally depicts a person with “three hearts and two ideas” for a single task. This numerical exaggeration creates a powerful and memorable image of internal division. Instead of having one heart and one mind focused on a goal, this person's energy is scattered, making them unreliable and ineffective.
This idiom is extremely common in modern spoken and written Chinese.