He could have, indeed. But he didn't. He attained his free will given the fact that Ryōshū's daughter was going to die soon.
...Yet, he chose to clash blades with the newly awakened Tiansha Star anyway, just so he could carry his master away. He died a warrior's death.