I don't get it...

Some nights my LO will do amazing and sleep up to 5.5hours straight (used to be up every hour), but then we now get nights where he won't go down at all and has to be held all night

(please don't judge, that's why I'm asking for help)...

I try to keep a super consistent routine so I'm really confused.

Why could this be? Any thoughts?