One of the things you get with trademarks is a right to license them. There's no law that stops Canonical from granting a trademark license to anyone who uses or depends on unmodified Ubuntu binaries.
They will give you licenses if you ask, and those licenses are apparently non-sublicensable, making them basically useless for a free-software project.