Without further research, my impression of where that term originated was in drafting contracts: The parts, like confidentiality, that are standardized and a component of most contracts, are the "boilerplate," in contrast with the parts, like a statement of work, that are specific to a particular contract. Did it jump from writing, in general, to legal contract drafting?