PHP is server side so once it's posted the page it's "dead" until the user does something. That could be entering a field, and javascript forces the submit based on data entered, rather than the traditional button click.
There's no reason why you can't mix up the technology and use each for it's strengths. eg I avoid javascript for generating a page but use it for manipulating a page once loaded.
HTH
Sarah