It’s really a combination of things. If you pay attention to your camera settings and equipment (including things like tripods and lens filters, which can help you get clear, well-exposed images) that’s a good start. From there, work on composition techniques to capture the scenes in a captivating way – for example, rule of thirds, leading lines, etc.
Developing your eye to seek out the best scenes and landscape elements will also help you capture beautiful images.