Jesus said, in my name they shall cast out devils.
The Bible says that God gave us power and authority over devils. When we command a demon to come out of someone who is possessed, the demon must obey because we believe and expect God to keep His word.