It is really very simple. The hotels without windows are usually 1-3 star hotels.
See how the Vietnamese townhouses are built? They share walls. If a hotel was constructed without neighbouring buildings, the windows to either side were not put in. This was in anticipation of the building next door being torn down and rebuilt, this time much taller; thus blocking the windows anyway.