In Bedrock Edition, the lodestone have a tile entity to shore the tracking handle, in Java, the lodestone have no tile entity.
Related issues
relates to
Comments

Thank you for your report!
After consideration, the issue is being closed as Working as Intended.
Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.
Full Version History – Snapshot Version History – The official Minecraft feedback site
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
Can confirm from checking through the code, though all the compass functionality is handled in the CompassItem.java, so this may be intentional.
Related to MC-164010 MC-164009