Why are capsules used?

Capsules are easier to swallow and are used by manufacturers when the drug cannot be compacted into a solid tablet. They are also useful when the drug needs to be mixed with oil or other liquid to aid absorption in the body. It is normally a shell or container made of gelatin that contains the drug.

Why are capsules used?