They prevent the loss of magnetism that happens in ferromagnets when temperature rises above their max working temperature point, until it reaches its curie temperature and completely demagnetizes.
Most motor magnets have the working temperature limit somewhere in the 80-160 range. Its never really stated properly and I wouldn't trust Chinese motors to use the proper materials.