This is not security at all. However, it may protect you from casual attacks from the uninitiated. The aim is to making (potential) security holes hard to find, while they still exist. Common approaches include
One page links to SecurityByObscurity:
lib/main.php:944: Notice: PageInfo: Cannot find action page