|Hi Way, I remember that story. I wish I had remembered it before I posted this. It was from Aesop's Fables.
Here it is:
A thirsty Crow found a Pitcher with some water in it, but so little was there that, try as she might, she could not reach it with her beak, and it seemed as though she would die of thirst within sight of the remedy. At last she hit upon a clever plan. She began dropping pebbles into the Pitcher, and with each pebble the water rose a little higher until at last it reached the brim, and the knowing bird was enabled to quench her thirst.
Necessity is the mother of invention.
When Water is Scarce (54)