they have different specifications eg. a muscle cell has lots of mitochondria as it needs to do a lot of work, or a neuron has to have a mylin sheath to insulate signals
The cell types in a multicellular organism become different from one another because they synthesize and accumulate different sets of RNA and protein molecules. They generally do this without altering the sequence of their DNA.