With 2 stroke you need to mix the oil with the fuel before injecting it into the engine in order to lubricate all the moving parts. With 4 stroke the oil and gas are kept separate and you just feed the fuel in.
4 stroke is more commonly sold today but with boating, the lifespan of the equipment is so long that there are a non-trivial amount of 2 stroke engines still in use today.