The advantage is obvious. People who know and/or enjoy Python can get into web dev without having to fuss with a new language. It’s really that simple.
All web API docs are written for Javascript. Knowledge and practice of Javascript is mandatory for front end development at first place.