I've seen it many times... Why does soap become foam-like when it reacts with water (moisture) or when we touch it with wet hands.. What compound actually causes this physical change? And why does this physical change occur?
The simplest kinds of soap are just a fatty acid chain with something more ionic on the end - something like the ubiquitous sodium laureth sulphate:
When it's in bar form, it behaves a bit like a solid block of plastic, because chemically speaking, those long chains of carbon are quite a lot like a common plastic such as polythene. These chains attract each other and repel and exclude water, keeping the block together. The sulphate group on the end is hydrophilic, though - it's chemically stable surrounded by water. This means that when you add water, it infiltrates and teases apart the structure of strands, getting to the ionic ends on each chain and forming a "solvation shell" of waters around each one. There's no real chemical reaction here - as you say, it's a physical process, which is why rubbing the soap helps - you're applying shear to the structure and helping to separate the strands.
Once they're separated from the bulk, the soap forms tiny bubbles called "micelles", which have the chains pointed inwards towards each other and the ionic sulphate groups meeting the water at the outside.
While this question should get a more elaborate answer, mine will at least give you leads.
By lowering the surface tension of water, soap bubbles can form, the surface becoming more "elastic" - the molecules at the interface experience less inward/normal force than they would were surfactant not present. On the contrary, adding soap to a pond would prevent water striders from gliding on the surface of the pond.
The soap dissolves in the water. Dissolution is not a chemical change because the same chemicals are present, they just interact with each other differently. Like CHM said, soaps act as surfactants and the difference in surface tension improves the survivability of bubbles, thus creating a "foam".