After macerating and cooking, the added sugar and the apples tend to sweat and release juices. This is why you need to add some form of thickener, like cornstarch or flour to bind and thicken the filling.