networking – Confused about ping replies from Apache web server

I have a Raspberry Pi running Apache web server. I have configured it to run multiple sites – these are local only, they are not internet facing yet.

I have updated my host file on my Ubuntu laptop with the domains and IPs.

When I ping say domain1 I get a reply from domain1.

When I ping domain2 I still get a reply from domain1.

Can anyone explain why this is?