Niantic has a long history of banning players caught spoofing, in Pokémon Go and in Ingress before it. This can get you access to Raids and Gym, as well as lie to the game about how much you're walking. For a game based on your real world location, spoofing tells Pokémon Go that you're somewhere you're really not.
Spoofing: Some people fake their GPS location.