THIS happens ALL the time.
The entire Reporting Relationship/Team Dynamic changed.
That's a valid reason to move on.
Incidentally, might be worth connecting with the former CTO via Linkedin.
While he may be contractually prohibited from employing you in his new role. He could serve as professional reference.