EPS turns total profit into a per-share figure, so it can be compared with the share price and across years even when the number of shares changes.
Basic EPS uses the shares actually in issue; diluted EPS also counts shares that could be created from convertible instruments or options, and is never higher than basic EPS.