In a shop, which was the correct if terse original answer. Specifically, these days, a digital storefront.
Star Wars: Knights of the Old Republic is sold on the major PC download services and has been for years, and the mobile versions exist for iOS and Android. Physical PC copies turn up second-hand but the disc is irrelevant now that it's digital-only in practice.
Be aware that the game has had availability hiccups when licensing between Lucasfilm, Disney and the publisher shifted. If it's missing from a store, that's why, and it usually returns.