A tenant has to return the property in the same condition it was in at the beginning of the tenancy, less normal wear and tear. Repainting is not necessary unless you caused excessive wear or damage that required repainting. Holes in the walls are a good example of damage beyond normal wear, but can usually be fixed without repaint the whole property.
If you gave back the keys, you are not entitled to return and do more repairs. You must do any repairs or cleaning before giving up possession.
If your landlord always repaints between tenants, than you are not responsible for the cost to repaint unless the work was more expensive than usual because of the damage you caused.
Unless there was an excessive amount of damage, landlords would typically touch up the paint to freshen it up for the new tenants.