They are explicitly to promote the progress of science and the useful arts. In practice, I think the terms are now much too long and the lack of requirement to actually use or cheaply license a patent makes the system better at generating profits than fostering innovation.