Most likely because the tree was already there growing up through the tarmac. It would have been a nightmare to pull it out and have to deal with the root system. The roots are probably pushing the tarmac up and it's quicker, cheaper and easier to build a box around it than to have to dig up half the road to remove the roots.