Not sure how noteworthy this is. Ask any of us to work for free and you might get the same answer.
I asked why the lucky stiff to do a foreword for my Ruby book several years ago and he did a comic strip! :-) http://www.rubyinside.com/why-the-lucky-stiffs-delightful-fo...
With more academic books, I've noticed that the forewords are more substantial and will refer to the contents of the books and other research in a more precise way. As such, I suspect they're a lot more work, whereas you could bash out a good 3-4 page foreword for a programming book in a few hours if you had the relationships or experiences to lean on.