You need to go to your power options in windows
Windows can set the power button to shutdown goto standby or hibernate.
I bet if you look at the settings you will see that it's set to standby.
All moden computers need u to hold the power button for 5 or 6 seconds to shut it off if the pc isnt shutting down.
Go check the options in control panel