Couldn’t he have been baptized before he got into the predicament he was in?
Roman Catholic and plain Christian doctrine makes a place for those who desire baptism, but due to special circumstances (like dying on a cross) don’t receive it before death. It is considered a baptism of blood.
Jesus Himself’s words to the dying thief were worth more than all the water in the world.