The only thing inherently wrong(if anything at all) about weight lifting for legs is that it doesn't exactly simulate the bike motion.
However, if it did, going heavy and working on muscle strength DOES have a positive impact on biking performance on both sprints and distance. On the other hand, though, this should be supplementary rather than primary in your focus....a ton of riding should be your main focus.