Probably because windows and mac treat differently window-less applications...
I expect if you create GUI or use QCoreApplication instead (in case your app does not make use of the QtGui module) your app will behave the same on all platforms.