Alibaba is too large company to choose only a single frameworks. They are cooperating with Vuejs author. But as far as I know some teams of them are just building they stack on top React, for example https://ant.design/ .
I would not suggest saying "switch". Alibaba is using Web technology heavily so they need the code to be really fast and if the size is smaller then it's even better. Also they want to script Weex low-level APIs with it.
So they just built one on their own and encourage the community to use it.
How? React Native is for cross-platform mobile applications while Rax only works in a web browser, as far as I can tell.
edit: Appears you're right, from the Rax tutorial [1]: "Rax is like React + React Native, you can use a component in the same way both in native and web as building blocks. " I guess this is possible because it's built on weex [2].
1: https://github.com/alibaba/rax/blob/master/docs/tutorial.md
2: https://weex-project.io/