Javascript is actually great for accessibility, it’s really hard to properly implement WAI-ARIA without it. Most people with screen readers will have js enabled too.
The main reason I can think of is trapping input inside a modal dialog when it's required.
Browsers recently rushed the dialog element and still have no easy solution for this.