Jonathan Taylor Thomas (Randy Taylor) chose to leave the series to focus on his education and pursue a normal college experience. He had been accepted to Harvard University and wanted to step away from the spotlight to attend classes and live as a regular student.
The writers wrote him out organically: Randy departs for a study-abroad program in Costa Rica, providing a satisfying, character-consistent exit that left the door open for occasional guest returns (which he did in Season 8's finale). There was no behind-the-scenes conflict—simply a young actor prioritizing his long-term personal growth over immediate fame.