He got super lucky, napoleon himself said Lady Luck carried him. On his boat ride to Egypt he got so lucky that the British fleet didn’t find him and sink his fleet.