Check the example here
https://makie.juliaplots.org/stable/examples/plotting_functions/image/#examples
The reason it works like this is that the first dimension of the image matrix is mapped to x and the second to y just like all other plotting functions. But arguably there should be an option to change that behavior