It's possible that the ballista crew panicked and ran when the Dothraki showed up. But yeah, they could have done a better job in the scene of explaining why it was unmanned, since (presumably) the whole reason they brought it with them was in case of a surprise dragon attack.