The story
From roost + -er. In the regions where it is used, displaced cock through taboo avoidance. Compare typologically Russian насе́дка (nasédka) (akin to наси́живать (nasíživatʹ), also akin to насе́ст (nasést)).
Etymology from Wiktionary, CC BY-SA 4.0.