As we move from left to right across a period on the periodic table, the nuclear charge increases since protons are added. If electrons are added in the same principal quantum level, the electrons are more strongly bound due to the increasing nuclear charge.
Electrons that are strongly bound will take more energy to remove, hence the larger ionization energy.