Light rays converge to the points on the focal plane, and the diverge as they go past. Only at the focal plane are they concentrated to a sharp point; elsewhere they would look blurred out.
(From this answer to a related question)
If you put your sensor at the focus distance, all the yellow lines hit it at one point. Elsewhere, they would hit at many points, making a larger blurry yellow spot.