Certain strains are naturally shorter & bushier.

Try choosing Indicas over Sativas whenever possible and check the breeder site for maximum height assuming you're buying seeds rather than using bag seed.