Perhaps:
580 – Botany and plant science (scientific study rather than growing)
631 – Soil, techniques, tools, and equipment
632 – Plant injuries, diseases, and pests
634 – Orchards, fruits, and forestry
635 – Garden crops (Horticulture) and general gardening
712 / 716 – Landscape design and herbaceous plants in landscape architecture
* https://en.wikipedia.org/wiki/List_of_Dewey_Decimal_classes630 is Agriculture, so there's some clustering there.
Like, consider the parent post's example of "a book about the history of gardening in England". That covers at least two topics, gardening and English history. If you choose to group all the gardening books together in one place, then you force the English history books to be scattered instead. This is just an inherent limitation of reducing a multi-dimensional "topic" space to a linear ordering.
The meaningful question is whether on average, this system is a more useful grouping than alternatives, based on how well it captures the "related-ness" that people actually care about, and how difficult it is for them to find what they're looking for. You can't answer that question by looking at the classification hierarchy alone. It's an empirical question about how users interact with the system.
The Library of Congress and OCLC (Online Computer Library Center) have the power together to change Library of Congress codes and the two most common sources of Dewey Decimal numbers (Library of Congress Dewey Program and WebDewey respectively). (With the third being the suggested Library of Congress and Dewey codes that publishers just guess at and print in book frontmatter themselves, which are as much there to suggest to Book Sellers where to stack the book, because Book Store orders are still influenced by the Decimal Systems, if no where near as specific in how much they pay attention beyond the first few digits, roughly.)
The irony is that computers themselves have also reduced pressure on getting the codes as "correct" or "useful" as possible because most people's first search algorithm now is not "find the closest Dewey Decimal number" anymore, but use the computerized catalog.