I think that all ships before the Defiant were built wholly or, in the case of the Constitution class and all similar ships, partly as exploratory vessels. The mandate "to explore strange new worlds etc." seems to be a large part of Starfleet's purpose (it's not a purely military institution)...