It is to create barriers to entry where possible. If you are rent-seeking greedy co, then why would you give away useful knowledge, not to mention for free? Also good documentation could make you create a replacement product or have better understanding what to look for in a substitute.