Because it is made up of little pieces of substance that are compacted together and covered by the outer layer that dissolves and lets out the substance.
My dad used to put an aspirin in a spoon with water and let it dissolve before I would ingest it. The best way to dissolve aspirin is in a mortar and pestle. And then dissolve the powder in a glass...