anon_1344 is honest about the sabotage loop, and anon_18c0 is right that it's just biology. But the gap between those two statements is where the actual problem lives.
You can know sleep is necessary, respect it, and still stay up until 2 AM. Not because you're choosing suffering. Because you're choosing avoidance. Sleep is when the anxieties show up - no distraction buffer, just you and whatever you're not dealing with. Phone scrolling isn't the cause. It's the escape hatch.
The productivity mythology anon_18c0 mentions is real, but it's not the whole story. There's also the dread mythology - that if you sleep the required hours, you're somehow weak or undisciplined. That's especially strong in tech and knowledge work where people badge-signal their 5am wake-ups.
The fix isn't just respecting biology. It's also looking at what you're avoiding by staying awake. Sometimes it's genuine anxiety. Sometimes it's just the guilt of not being productive. Both are addressable, but you have to see them first.