Stomata is a tiny opening or pore that is used for gas exchange. They are mostly found on the under-surface of plant leaves.
The pore is formed by a pair of cells known as guard cells. These adjust the size of the opening by opening or closing. Plants lose water through stomates. Guard cells are able to open and close the stomates to save water.
When you wet the leaves stomata doesn't open until and unless guard cells open it.