Elisha told the prophet's widow to shut the door of her house so only she and her sons would witness the miracle of the oil in 2 Kings 4:1-7. When he arrived at the Shunnamite woman's home in v32, he went into the room with the dead boy and shut the door behind him. Why did he want these miracles to be done in private instead of in the open where more people would see and glorify God?
Maybe because he knew the miracles God worked through him prefigured those of the Messiah, and he didn't want anyone mistaking him for the greater One who was yet to come.
Or maybe it was for the same reason Yeshua told the doubters to leave when he healed Jarius' daughter. Even he couldn't work many miracles in the midst of doubters.