What does 就 mean in 你怎么就睡在这里了呀？ 你怎么就睡在这里了呀？


Searching 就 up on the Chinese Grammar Wiki gives a pretty long list of usages, and I have no idea what (if any) is most applicable.
The sentence still makes sense, even if you remove 就.


  你怎么睡在这里了呀？


Therefore, 就 is an adverb here, and emphasizes the verb, "sleep".

A few more examples are from 现代汉语词典:


  表示加强肯定
  
  
    我就知道他会来的，今天他果然来了
    我就不信我学不会
    那就是他的家
    幼儿园就在这个胡同里。
  
  
  现代汉语词典, page 697