I’m not sure what alternatives they had. Of the top 10 languages on GitHub (https://github.com/languages), only C and C++ do not have garbage collection. Those are quite a different beast from Java of Objective-C.
There’s a selection bias here but I struggle to come up with a popular non-GC, compiled language that operates on the same sort of level as Java or Objective-C.