Well, a plug-in consists of a computer program that interacts with a host application (a web browser or an email client, for example) to provide a certain, usually very specific, function "on demand". Applications support plugins for many reasons.
http://en.wikipedia.org/wiki/Plug-in_(computing)