are mannequins like an NPC just programmed to stand still and take armor?
Exactly. They are NPC's with a different texture and just set with a static AI. However, this AI script seems to be manipulated even from the initial release. The used to just be found standing across a room and on very rare occasions be seen actually taking a step. However, in later patches the AI takes on the idle scripts of average NPCs and are found sitting and even using crafting stations.
Any NPC can be scripted with the same AI and thus be used as mannequins.