"Sheer luck" means that something happened entirely by chance or coincidence, without any planning or skill involved.