Artists wanted to represent the 3 dimension; Giotto was one of the first painters including perspective.
The are several ways of depicting it (proportion, atmospheric perspective) but linear perspective it was develop to achieve it: the vanishing point is the one where all lines converge