Its possible the tower didn't have radar so they wouldn't know what you are squawking.
I fly a daily survey flights that originate and end at the same non radar class D airport. The tower always coordinates with center and gives me a transponder code of 1201 before I depart even though I...