A pinecone enclosed in a tree

Did it grew inside the tree or did the tree grow around it?