I think it more depends on specific person's sleep schedule and the vibes their brain works best in.
Some people like or need having people around - so they work at a cafe or enjoy the office.
Others need quiet, the feeling of not being interrupted, and that they're fighting sleep to get going.