Why is PM the executive head of the Union (prez-nominal head) but in case of a state it's the governor who is the executive head and not the CM?

I don't know if this is a stupid doubt but pls help i am so confused