What is the difference between the structure of Adjective + of + noun and adjective direct + noun

What is the difference between the structure of Adjective + of + noun and adjective direct + noun

Adjective + of + noun: in this structure, the noun acts as the object of the preposition of
Adjective direct + noun: adjectives in this structure are used as attributives of nouns
For example:
Fear of my teacher the noun "teacher" here is the object of of
A good teacher the adjective "good" here is the attributive of the noun "teacher"