I don't get why this is an issue. I slacked off on many boring subjects to do the same. Building software and other digital stuff helped me think like an entrepreneur, and was a hell of a lot more educational than the rest of school.
While the goal of schooling is cultivate young minds and educate them, the reality is that schools are an institution that must implement a curriculum and they expect students to do as they are told.