The state borders themselves were gerrymandered in the 19th century to influence the electoral college. That's why for example there's all these very empty northern states like the two Dakotas, Montana and Wyoming that collectively have fewer people than LA but between them they get 8 senators.