Mozilla Firefox has been designed to automatically download updates in the background while you use the browser. That's how to Update firefox!
So if you’re the kind of person who doesn’t shut down their PC or close browsers, you might have updates in the background waiting for you to restart Firefox or restart the computer and the updates will be installed.
If you don’t want updates to be installed automatically every time you restart your browser, you can go to Menu > Options > General