To become a good photographer you have to know how how light works and how your camera captures light.
The good photographers that I know understand optics and physics and make the appropriate investment in lenses, tripods and lighting equipment to capture the image.
I agree that a person who just goes out and buys expensive equipment is unlikely to become a great photographer. But great photographers understand their equipment and are always seeking improvements.