Leaf loss happens by a process called abscission, triggered by shortening day length. The plant forms a layer of cells that isolate the leaf from its twig, and where the leaf can readily detach.
Abscission is a very complex process and involves sebveral plant hormones.