So I respawned at someone's sunderer, and afterwards I went to change class. I somehow ended up in the drivers seat of the vehicle. After I got out, I was recieving the XP for spawning people instead of the actual owner.
That's not a bug. That's called the driver logged out and his vehicle became open game for the next player of the same empire to get in the drivers seat and claim it.