Bug or is it like that way

I have a question about boss battles.

Is it a bug that you dont get exp from the boss only loot and money because i was testing it and i saw that i didnt get exp from a boss.