By her choice. She found neurology intellectually interesting, but ultimately too depressing. ( In neurology, you manage conditions and mitigate symptoms, but you seldom actually “cure” a patient.)
Neurology is not an especially competitive specialty. D2’s grades and STEP scores were excellent and she was qualified to enter into any specialty she chose, including the most competitive ones.