Students who are admitted to a program are often all invited out for a "visit day." Often, expenses are paid.
Before then, some departments welcome visitors and others don't want them. For example, MIT says "Can I visit your department or contact faculty before being admitted?
In other disciplines, contacting faculty before applying is often the norm. It isn't in economics.