Why are territory voters only counted in the national majority in a referendum?
That is an interesting question, Abigail.
Section 128 of the Constitution says a referendum is passed if it is approved by a majority of voters across the nation and a majority of voters in a majority of states — a double majority. A double majority makes sure there is support across the country and that voters within every state, regardless of their population, have an equal say on the change. The votes of people in the Australian Capital Territory and Northern Territory are only counted in the national vote.
People voting

Australian Electoral Commission
Description
Three people are in a polling place completing their ballot papers in cardboard voting booths. Each voter is separated in their own booth to ensure their vote is secret.
Permission should be sought from the Australian Electoral Commission (AEC) for third-party or commercial uses of this image. To contact the AEC email: media@aec.gov.au or phone: 13 23 26.