Question: what are you doing up so late meaning?
Answer: "What are you doing up?" is a very normal way to ask why the person is not in bed, whether it's later or earlier than expected.