AP is reporting a possible motivation:
“The current #LibrarianOfCongress Carla Hayden is woke, anti-Trump, and promotes trans-ing kids,” the group, American Accountability Foundation, said on its X account earlier Thursday, just hours before the firing was made public. “It’s time to get her OUT and hire a new guy for the job!”