This expression literally means “high like three apples”. Haut comme trois pommes appeared in the 20th century. It was primarily used to describe very short people. Nowadays, it is used for kids.
The Belgian artist Peyo, who created the cartoon Les Schtroumpfs (The Smurfs), says that the Smurfs are as three apples tall!