Difficult to know how they made such a basic error. The terminals would have been nearer the front/rear of the compartment, and I'm surprised the cables reached. Obviously they did, but you would have thought that anyone with half a brain would have felt something was wrong. I'm also surprised it didn't knacker the alternator. Must have got very, very lucky.
Edit: See below
Edit: See below