Chocolate chip cookies get hard after cooling because moisture evaporates. To keep them soft, store them in an airtight container to prevent them from getting stale.