The pills were put on the ground by Guthix when you asked him for a cookie. The pills put down were the Spontaneous Combustion Pill and the Paradox Cure. The cure might still be in Guthix's Graveyard.
-The red and blue pills are a reference to the film series Matrix.
-They are primarily filler objects.