A craniotomy for aneurysms is performed to prevent further bleeding. It is not intended to reverse damage already caused by bleeding or compression of the brain.