Yes you're right it may well have been connected to an underground pipe, and I, like you, also thought that soak aways needed to be a certain distance from buildings.
Do you know if what the builders have done is 'illegal', by positioning the downpipe in the way they have? If they are...