It's called mirroring - a psychology process in building rapport. We all do it when comfortable with a friend / family member. You can use this to your advantage to win people over to your side. Just try not to be too obvious or they might spot you! ;)