The cheaper bikes aren't just cheaper because they aren't from a big marketing machine like trek or specialized
All the bolt on parts are basically the same price, and if anything the big guys are getting those parts cheaper due to volume. The cheap guys are using lower cost frames as the primary place to save money. They also have basically no marketing costs. Smaller guys lack the buying power to get good prices on parts.