My ISP doesn't use a modem. How does this work?
There could be a modem connecting to the switch/router gear that is in the other side of that Ethernet connection, however a modem is not mandatory.
Depending where you are, it is entirely probable that your connection does not use a modem of any sort. For example, in New Zealand we have fibre to the home/fibre to the building. Fibre does not require a modem - only a media converter. (There are likely additional layers.like PPPoE and/or VLANS handled by a router but there is no modem).
The ISP does not require a modem either as the signal is digital. (All a modems job is to convert a digital sihnal into an analog one and back. This is needed, for example, to send and receive data over phone cable/2 wire copper and cable connections)
(I disagree with John and assert that a reseller is an ISP, as the meaning of the word is fairly generic. I know because I have built ISP's - including ISPs which sold services to resellers)
Modems are not a requirement, at all. They just happen to be the common case in many parts of the world because they allow usage of existing (quite often old) telephony or cable television infrastructure to provide internet access.
In many of the more developed parts of the world though (except the US, because we're still essentially a third-world country when it comes to internet access outside of very large cities), it is far more common to have 'Ethernet in the first/last mile' (that is, the final link from the ISP to the client demarcation point (usually a gateway or NAT router) is Ethernet of some sort, with 'first/last mile' referring to that link specifically). In most places, this translates to a fiber-optic link to the ISP, but in dense residential buildings such as apartments, it's much more common for it to be Cat5e (or if you're lucky Cat6) UTP cabling (that is, 'regular' Ethernet cabling).
In such setups, there's no need for a modem at all, because you're not tunneling Ethernet or IP over a different type of physical link (such as X.25, ISDN, or DOCSIS). You will usually need a router though (and should have one even if you don't need it because it provides an extra layer of security).
In your particular case, either your apartment is set up like this (that is, you have a centralized link to the ISP which is then distributed through a switch to each of the apartments), or you have a single centralized modem which is handled in the same way.
As an aside, there really may be no modem here at all. While the internet, in it's infancy, did originally rely a lot on connections over analogue communications channels like phone lines, that hasn't been the case for the core of the internet for multiple decades. Modems have only hung on because ISPs are cheap bastards who don't want to invest in newer infrastructure until there's no other option (this is also why we're still stuck using IPv4 more than 20 years after IPv6 was developed). Outside of that first/last mile, you won't find modems involved in internet access in most parts of the world unless you're quite literally in the middle of nowhere. The modern internet runs on fiber Ethernet links between major data centers, and has nothing to do with analogue communications infrastructure.
The real irony here is that a lot of the traditionally analogue telecommunications industries are migrating to running on the modern fiber network infrastructure the core of the internet runs over. A lot of bigger phone companies are already using VoIP on their internal networks instead of historical analogue network protocols like X.25 and ISDN, and even many cable and satellite television services are moving the same direction.
When internet was younger, we had decent phone lines, so we could use those to connect our households to the internet. That's the use of classic modem - converting the Ethernet signal to something that can be carried over the phone line or similar.
These days it becomes increasingly rare as we are having more and more infrastructure built specifically to carry internet traffic. It has already shifted over - in many countries telephony is carried over internet. I was briefly working in a company developing solutions for that in 2012 and back then many of the mobile providers in Europe were already using internet to carry the calls between cell towers. Afterwards I've worked with three companies that have ripped out or cut off their phone lines and replaced them with IP telephony.
Of course, there are still devices that convert signal to be carried over different medium, but the modems that hook up to the phone line in your home are pretty much a thing of the past.
During my discussion on this platform, I realized that my ISP is a reseller.
It's not like they are buying the internet and selling it to you. We are all part of the internet and we are paying the ISPs for providing the connection between us. Your ISP is reselling only in a sense that they pay some other companies for using their high bandwidth connections to other ISPs.