It is known as stinking because some people find the smell of its leaves unpleasant when crushed or bruised, an odour that has been described as beefy.
The benzopyrrole volatiles indole and skatole actually have a mothball type smell, and therefore probably do not contribute greatly to the characteristic smell of flatus.