The producers think that the twins playing Zack and Cody are too young, and it is decided that the real Zack and Cody should play themselves.
The creators think the twin performers are too young for their parts, so it is decided to cast the actual Zack and Cody in those roles.