The Western Cape doesn't have a capital city—it is a province.
Its capital city is Cape Town—which also serves as South Africa's legislative capital (Parliament sits here).
Confusion arises because "Western Cape" sounds like a city. It's one of South Africa's 9 provinces. Cape Town = provincial capital + national legislative capital.