The Xbox One was not initially backwards compatible with Xbox 360 games. However, Microsoft later added backwards compatibility for many Xbox 360 titles via system updates.
Now you can play numerous Xbox 360 games on Xbox One (and Series X|S).
While not initially compatible, Xbox One became backwards compatible with this feature.