Iirc 47 was the number of the office the writers or production designers or someone were originally based in and they slotted that in as a reference/in joke a few times. And it's just kinda kept going since.
Fun fact: I was 47 years old when I figured this out.