Part of the reason for this is that the 328i is a luxury car, so some of the replacement parts can be more expensive than average. However, it’s also true that *the BMW 328i requires more repairs** than the average vehicle in its class, so you’ll be visiting the mechanic more often as well.
While this doesn’t necessarily mean that you need to buy a different car, it is something to consider when comparing the cost and features of different vehicles.