Sony is one of the few Android vendors that mainlines the device drivers for their hardware, so you can reasonably build the newest AOSP version and go to 7.1 if you feel the inclination.
https://blog.al4.co.nz/2015/01/good-news-for-z3-compact-owne...
But it seems like it was a very deliberate choice by Sony.