EC2 is used Where we need virtual service instances. It is a mature and (generally) stable solution that can be used easily in multiple available zones and international regions. Therefore it is low risk and good for productions services where reliability is important
You can find more details here AWS EC2