Have you read the methodology that 538 uses? Yes, they rely on polling data, and I will agree with you that polls cannot be trusted. However, 538 attempts to compensate for that by giving weights to polls based on their historical accuracy. It is further refined to take into account current trends, regression analysis, etc, etc…