It’s an old desktop PC
One (or more) of the electrolytic capacitors in your PSU has died.
Remove the power cord, wait for 2 hours, open the PSU and look carefully for the candidate(s) with the domed head. Healthy ones are perfectly flat on the head.
Order a new one and replace it.
What did you do?
What did you expect?
What did you observe?