My take is that Gojo let his guard down.
The later most likely thought he won after destroying Mahoraga, leaving Sukuna both defenseless and offenseless, why he let his guard down sleeping on his passive limitless shield.
He was wrong.
Never let your guard down until you're sure you won. He made a fatal mistake.