Yeah but anybody can get apples, gold, obsidian, diamonds and redstone just by digging. You gotta prepare, plan, and execute to get the dragon egg. Also, I wouldn't say its illegal to get it, its just a different method of obtaining the egg than your typical block.