Swift was developed by a lot of former C++ committee members, and in C++ circles they’ve been advocating for it as a “successor language” for quite some time.
This could definitely be confusing if you don’t have that context, but making Swift useful for this kind of project has been an explicit goal of the Swift developers for years.
Through talks at C++ conferences and appearances on C++ podcasts:
https://youtu.be/lgivCGdmFrw?feature=shared
https://podcasts.apple.com/us/podcast/cppcast/id968703120?i=1000663536368