This effect is called Miniature effect
A miniature effect is a special effect created for motion pictures and television programs using scale models. Scale models are often combined with high speed photography or matte shots to make gravitational and other effects appear convincing to the viewer.
This technique is still used but largely replaced by CGI.
There is a nice article form vashivisuals.com about it :
Visual Effects – Low Budget Filmmaking
Miniatures and Forced Perspective
This article teaches how to achieve this effect without CGI.
But remember some films do use mix of CGI and Miniature effect to get their goal. Below is the behind the scene video for Blade Runner 2049 :