The most likely cause is a software intervention as already mentioned, anti-virus, spyware, some trojans, certain MS updates.
However, there is one low probability hardware event that can happen usually with older hardware and bios set up. It relates to the power management software within the bios.
With some systems, when running, Win 98, you have to ensure that your operating system is on the drive that is in the MASTER position in the PRIMARY IDE circuit for the shutdown command to work. If you have two drives and they are set up as CABLE SELECT or the operating system is on the SLAVE or the SECONDARY IDE circuit the power management wont recognise the shutdown as it is expecting it to come ONLY from the PRIMARY MASTER.
Another low probabilty event is that some bioses expect the shutdown command to come from the first or second device listed in the boot sequence list and will ignore such a command from devices listed later. Try changing your boot sequence and see if it works.
These are not common problems but it is a bastard when one happens.
Also so systems have a problem with the cable being used. I have seen some work with a 40 pin cable and not with a 80 pin cable, and vica versa.
Also check that all cables are fully seated.