Many airlines have reservations systems that do not have a middle name field or fields for multiple last names, so once your ticket is issued, their automation system automatically pushes your names together. This can also happen if your name has a lot of characters.