What exactly doesn’t make sense? What in the theoretical scenario do you not understand?
Here is the scenario without the … emotional baggage:
——
Company X has patent P.
Company X releases open source O which provides implementation of patent P.
There is no patent grant in the license of open source O.
Company Y uses open source O.
——
Can company X sue company Y for infringement of patent P? I think the answer to this is “yes”.