You must first request the Coop from Robin, to do this, you need to visit Robin and see how much the Coop will cost and how many resources you need (as well as coins these buildings also cost wood, stone, and coal). If you have enough, you must bring the resources to Robin and request the building. You can only add animals once the building is ready. When this happens, you can visit Marnie and purchase Animals.