Central Australia is hot and dry because it is far from the ocean, and deserts don’t get much rain. The sun shines a lot, making it very warm.
Areas near the ocean are cooler because the sea helps cool the air. Also, these places get more rain, so plants grow and the land is green.