...then the companies having bad code will make a few good ones for show. Interview is like first date both parties try to impress without mentioning the critical (i could have said important too) parts.
If you're not interviewing with anyone on your team directly they may not have access to whatever you'll be working on. That doesn't make it a bait and switch.