Why butt plugs?

So....I have always wondered the use of butt plugs. Are they literally there to just be in your asshole? Are you supposed to get pleasure from it?