This is a tree called, "Nanja Monja no Ki."  It translates to basically, "What's up with this tree?"  I did some looking into it, and if a tree happens to be really old and weird within a temple ground, sometimes it will receive this name.  There's a Nanja Monja no Ki at the Meiji Shrine in Tokyo, and another in neighboring Ibaraki Prefecture.  This one is in a little town near Narita called Kozaki.