Why we use L2VPN and L3VPN in MPLS

Why we use L2VPN and L3VPN in MPLS.

L2Vpn is used in ISP VPN where ISP help customers to connect their locations in the same subnet.

Where L3Vpn is also a VPN however locations will be in different subnets.