I was just wondering why does a drug overdose happen?

Long answer. There are a lot of reasons why overdose happens. There is an established set of dosages for medications based on the disease they are being used to treat for. When that dosage is exceeded, that is an overdose. Some overdoses do not harm a patient, but a harmful overdose can happen when the amount prescribed is exceeded. Different drugs have different effects when overdosed.