Buddha used the word "the world" as a synonym for dukkha. he is referring to a mental world (rather than a physical world)