Apparently this was done because air captures less X-rays than CSF and thus creates more contrast with brain tissue compared to the cerebrospinal fluid.

Unfortunately this was pretty painful and uncomfortable.