An artist can use different perspective techniques to make it seem like there is real space in their art. This is an illusion, there isn’t literal space in the piece but it appears that way and gives off that visual effect. It creates dimension rather than appearing flat. Hope this helps! :)