They hired Norv Turner because they wanted him to run their offense, and the Niners would not let him go to SD unless it was a promotion (in other words he couldn't be SD's offensive coordinator). That's why they hired him as Head Coach.
Anything else you'd like to know?