Food is often prepared and eaten in the library.
A library is a quiet place and preparing food is too loud.
A library has more fiction books than cookbooks, and cookbooks can help prepare food.
A library typically doesn't have the necessary equipment to prepare and eat food.