Appium's server side for iOS

Why appium’s server side for iOS is written in javascript? Why not in objective-c?