Because all organisms are made up of cells and there are different types of cells which carry different functions.
Through processes like photosynthesis.
Antibiotic resistance is a consequence of evolution via natural selection. The antibiotic action is an environmental pressure; those bacteria which have a mutation allowing them to survive will live on to reproduce. They will then pass this trait to their offspring, which will be a fully resistant generation.