Colton S. answered 05/02/21
Ivy League Japanese Scholar
This is a pretty old question so you may already have your answer, but there is a similar pattern in English when people say: X is X. Even if you try to dress up or present X in a different way, it still remains X. In this case 学校が学校 means that school is school, and 年が年 means that they are still the same age. So, even though his friend's family is wealthy, a boy is still a boy, so wealthy or not, his lifestyle is still similar to the speaker's.