Sbt downloads and runs whatever version of Scala you ask it to use in the build.sbt file, e.g.,
scalaVersion := “2.13.7”
It ignores Scala on your path. I’m assuming you don’t have a build.sbt file in that directory or you didn’t specify the version of Scala. In this case, it picked the version, 2.12.15, that sbt itself is using. This version is decoupled from your project’s Scala version. SBT can run 2.12.15 while building artifacts using 2.13.7 or whatever.