So few details so there is very little that can be suggested.
But my HP did this when I had Windows 98, 12-13 years ago.
Turn it on, it would always offer me the "Press F1 to continue, press F2 to enter Setup". I hunted around for suggestions and tried them all, even the 'replace CMOS battery' one, but nothing worked.
The strange thing is, the computer worked fine so I lived with it.
Mark
This is driving me crazy,I always have to hit F1 for my computer to boot up,my friend gave me the computer and it did it for him also.Need help on this cause.Thank you.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic