Every living organism have some features which help them to survive during danger, same in plants they are also living thing. So, when we shift a potted plants they release a special type of gas as a msg for other plants around it that there is a danger, and we cannot see these gases with our eyes but we get a peculiar smell.