The man shot dead in a home invasion in Glen Alpine, Sydney, has been named as engineering student Marco Tapia.

Why Marco Tapia, 23, was shot dead in his bed is the question that has alarmed senior NSW police.

Home invaders opened fire at the man as they stormed his home in Glen Alpine about 4am on Tuesday.