It's the damn employer, that bloody Jigokumeguri, that arranged the loli ghost to be there. Her job is to make sure Kobayashi, or any employee working overtime in the middle of the night, will keep working and working without giving up. The loli ghost herself doesn't realise it, but that's the very key to why it's so effective.