Sir this is because you must be using the same name for the logo i.e. logo.gif
If you use some other logo and change the path to your logo in the MyBB admin panel -> Templates and Styles -> Themes
After this your logo will not be replaced.
This happens because the default logo.gif comes in the package which we unzip while upgrading.