Here's how the word evolved:
* Old Norse: á lofti (in the loft)
* Middle English: a-lofte (upward)
* Modern English: aloof (distant, reserved)
The original meaning of "in the loft" gradually shifted to signify a sense of being high up and therefore removed from the ground, which then evolved to mean emotionally distant or detached.