TEXTURE1, TEXTURE2 and PNAMES is a system developped by idSoftwareare to create textures from socalled patches. All three lumps may be present in a pwad. Patches are those images which are placed between P_ markers (P_START and P_END).
In the original DOOM games, this namespace is further broken down into separate P1_, P2_ and P2_ spaces, probably to separate images into themes.
One might wonder why such a system was applied. The reasoning was to contain the textures memory footprint as small as possible. Consider that DOOM was programmed at a times when Most PCs had only 640 KB of memory, so having a lot of full blown textures to deal with ate up a lot of that memory space. A few small textures (patches) were employed to piece together a large number of textures.
Kappes Buur, February 2021