Because there is private property in Washington DC.
There is nothing "private" about the Whitehouse except for the areas where in the President's family live.
Would you be suprised and offended if the President kept his personally owned gun(s) inside the Whitehouse?
I wouldn't. But that would put him in legal jeapordy.
