The situation is a bit more subtle than you make out. The EPT has clear language which excludes software from patentability, but that hasn't stopped lawyers from arguing that some software can be patented if it has a physical effect (even a minimal one). Wikipedia actually summarises it decently:
https://en.wikipedia.org/wiki/Software_patents_under_the_Eur...