I saw this peculiar tree hole last week. It was quite large, about 15 cm long. The relatively smooth edges and the roughly hexagonal shape made me think it was opened by a person. But I can't think of a function for such a hole.
You can see from the pictures that there was already a large cavity within the trunk of the tree. Now that there is an entrance, some animal will probably move in soon.