Apple banned Epic the day before DMA came into effect when doing this sort of thing was still legal, they 100% saw this. They did probably bet on the chance EU would overlook it if they did it before the law came into effect, they lost that bet but they thought it was worth a try.