I do it for three main reasons.
1). To leave a record for future genealogists and/or family historians, be they related to me or not.
2). I enjoy puzzles and genealogy is one of the GREAT puzzles of all time.
3). I enjoy the thrill of the chase and nothing beats that "AH HA!" moment when you located a particularly difficult person.