Why don’t the developers move on to sprint two work while the testers finish up on sprint one?

When the developers have finished a sprint they could potentially get started on new work. But only until their work is fully done and testing is a part of finding that out if done is done before the sprint ends.