It’s called the senescence, it happens by the end of plants life, it’s part of the natural cycle of the plant.
You can trigger the process by flushing the plants when they reached their harvest window, to break down all the nutrients and the chlorophyll faster.