Why does most of China's population live in the eastern part of the nation?

Much of Western China is very mountainous and dry, and as a consequence there is little opportunity for agriculture here. Further east it becomes less mountainous and there is more rainfall. This is why the vast majority of China's population lies within 1000 miles of the country's coastline.