Because Boeing was already tooled up for that airframe, and the military already had the support infrastructure and trained people for it, making it cheaper than adopting a totally new air frame. Notice the new engines though? Also they reportedly dropped in OTS avionics and cockpit systems from the 737 to update it all.