It may be caused by an infection, such as a bacterial infection. It may be caused by a lack of bile present in the stool. Bile is produced in the liver and functions as an aid in the digestion of fats. Bile is greenish-brown in color, which is what gives stool it's brown color. Without it, stool is pale.