Extent of the input rasters (xmax and ymax are different):
In terra:
ext(ras)
#> SpatExtent : 550785, 783915, 5611185, 5847315 (xmin, xmax, ymin, ymax)
In rasters_jl:
extent(rast)
#> Extent(X = (550785.0, 783885.0), Y = (5.611215e6, 5.847315e6), Band = (:B1, :B9))