Why is sky dark at a very high height

If rise very high into sky while it is day time, there will be dark sky in some height - it is all because far away from the current place is a night at that moment! For example if to fly high at day time in russia, the night in America will be observable.