The major factor that determines why fungi are not classified as part of the plant kingdom is:
Fungi are heterotrophs, but plants are autotrophs.
This distinction in how they obtain their nutrients is a key reason for their separation into different kingdoms. Fungi obtain nutrients by absorbing organic material, while plants produce their own food through photosynthesis.