Because this target doesn't generate a file / directory called "docs". Make recursively enters this directory.

See https://www.gnu.org/software/make/manual/html_node/Phony-Targets.html