Why chandigarh is the capital of haryana and Punjab?

Chandigarh is not the capital of either Haryana or Punjab. It is a union territory, governed directly by the federal government of India. The capital of Haryana is Chandigarh, while the capital of Punjab is Chandigarh.
Copyright Wanderlust World © https://www.ynyoo.com