The main reason is a combination of negligence by the owner of the plant and not enough enforcement of standards. The fukushima powerplant was known to have sea wall lower then required and as such was vulnerable to a tsunami (this was known for quite a long time) Combined with backup power in the basement (also against standards)
For an example of what happens to a reactor build according to safety requirements see the onagawa nuclear powerplant
It also had a design flaw that has not been present in most nuclear reactors since the late 70s.
"Modern" designs have the ability to self cool in case of emergency by using an ice containment condenser or similar solutions.