Computer Science programs have many different roots. I think the most common is for them to grow out of Electrical Engineering departments where they end up tightly coupled with Computer Engineering, lots of hardware emphasis, etc. But they can also grow out of departments like math or information / library science. Then they may end up fairly far from the engineering departments.