Apple’s putting its own chips - the same chips - in both its MacBook and iPad product lines. Their iOS also shares significant architecture with macOS, and is basically a derivative thereof.
Meanwhile, my tablet is running Windows 10 on its Intel i7 CPU.